diff options
author | Younes Serraj <younes.serraj@gmail.com> | 2023-02-28 21:14:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-01 09:14:03 +1300 |
commit | 0b26518acc4c946ca96dfe3d9e68a05ca84439f7 (patch) | |
tree | fdddf284ed090311aef47159e8a11371bc27ad92 | |
parent | 9eb4aa2646fdaaf22c7f6a9fa4c6dc73e587204f (diff) | |
download | rack-0b26518acc4c946ca96dfe3d9e68a05ca84439f7.tar.gz |
Enhance documentation (contains -> is a) (#2041)
-rw-r--r-- | lib/rack/builder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/builder.rb b/lib/rack/builder.rb index 0b9c3d24..80c07314 100644 --- a/lib/rack/builder.rb +++ b/lib/rack/builder.rb @@ -53,12 +53,12 @@ module Rack # Rack::Builder.parse_file('app.rb') # # requires app.rb, which can be anywhere in Ruby's # # load path. After requiring, assumes App constant - # # contains Rack application + # # is a Rack application # # Rack::Builder.parse_file('./my_app.rb') # # requires ./my_app.rb, which should be in the # # process's current directory. After requiring, - # # assumes MyApp constant contains Rack application + # # assumes MyApp constant is a Rack application def self.parse_file(path) if path.end_with?('.ru') return self.load_file(path) |