Class: Derailleur::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/derailleur/core/handler.rb

Direct Known Subclasses

RackHandler

Defined Under Namespace

Modules: Rack

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ctxObject

Returns the value of attribute ctx.



6
7
8
# File 'lib/derailleur/core/handler.rb', line 6

def ctx
  @ctx
end

#envObject

Returns the value of attribute env.



6
7
8
# File 'lib/derailleur/core/handler.rb', line 6

def env
  @env
end

#objectObject

Returns the value of attribute object.



6
7
8
# File 'lib/derailleur/core/handler.rb', line 6

def object
  @object
end