Class: Rack::Tail::App
- Inherits:
-
Object
- Object
- Rack::Tail::App
- Defined in:
- lib/rack/tail/app.rb
Instance Attribute Summary collapse
-
#cache_control ⇒ Object
Returns the value of attribute cache_control.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(root, headers, default_mime, default_lines) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(root, headers, default_mime, default_lines) ⇒ App
Returns a new instance of App.
12 13 14 15 16 17 |
# File 'lib/rack/tail/app.rb', line 12 def initialize(root, headers, default_mime, default_lines) @root = root @headers = headers @default_mime = default_mime @default_lines = default_lines end |
Instance Attribute Details
#cache_control ⇒ Object
Returns the value of attribute cache_control.
9 10 11 |
# File 'lib/rack/tail/app.rb', line 9 def cache_control @cache_control end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
10 11 12 |
# File 'lib/rack/tail/app.rb', line 10 def root @root end |
Instance Method Details
#call(env) ⇒ Object
19 20 21 |
# File 'lib/rack/tail/app.rb', line 19 def call(env) RequestHandler.new(env, @root, @headers, @default_mime, @default_lines).call end |