Class: Pancake::Middlewares::Logger
- Defined in:
- lib/pancake/middlewares/logger.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(app) ⇒ Logger
Returns a new instance of Logger.
6 7 8 |
# File 'lib/pancake/middlewares/logger.rb', line 6 def initialize(app) @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
5 6 7 |
# File 'lib/pancake/middlewares/logger.rb', line 5 def app @app end |