Class: Balotelli::Core::Router::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/balotelli/core/router/action.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block, mod_name) ⇒ Action

Returns a new instance of Action.



6
7
8
9
# File 'lib/balotelli/core/router/action.rb', line 6

def initialize(block, mod_name)
  @block = block
  @mod_name = mod_name
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



5
6
7
# File 'lib/balotelli/core/router/action.rb', line 5

def block
  @block
end

#mod_nameObject (readonly)

Returns the value of attribute mod_name.



5
6
7
# File 'lib/balotelli/core/router/action.rb', line 5

def mod_name
  @mod_name
end