Class: Rlyeh::DeepOnes::TypableMap
- Inherits:
-
Object
- Object
- Rlyeh::DeepOnes::TypableMap
- Defined in:
- lib/rlyeh/deep_ones/typablemap.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ TypableMap
constructor
A new instance of TypableMap.
Constructor Details
#initialize(app) ⇒ TypableMap
Returns a new instance of TypableMap.
4 5 6 |
# File 'lib/rlyeh/deep_ones/typablemap.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 |
# File 'lib/rlyeh/deep_ones/typablemap.rb', line 8 def call(env) @app.call env if @app end |