Class: Derailleur::Handler
- Inherits:
-
Object
- Object
- Derailleur::Handler
- Defined in:
- lib/derailleur/core/handler.rb
Direct Known Subclasses
Defined Under Namespace
Modules: Rack
Instance Attribute Summary collapse
-
#ctx ⇒ Object
Returns the value of attribute ctx.
-
#env ⇒ Object
Returns the value of attribute env.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(obj = nil, env = nil, ctx = nil) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(obj = nil, env = nil, ctx = nil) ⇒ Handler
Returns a new instance of Handler.
7 8 9 10 11 |
# File 'lib/derailleur/core/handler.rb', line 7 def initialize(obj=nil, env=nil, ctx=nil) @env = env @ctx = ctx @object = obj end |
Instance Attribute Details
#ctx ⇒ Object
Returns the value of attribute ctx.
6 7 8 |
# File 'lib/derailleur/core/handler.rb', line 6 def ctx @ctx end |
#env ⇒ Object
Returns the value of attribute env.
6 7 8 |
# File 'lib/derailleur/core/handler.rb', line 6 def env @env end |
#object ⇒ Object
Returns the value of attribute object.
6 7 8 |
# File 'lib/derailleur/core/handler.rb', line 6 def object @object end |