Class: Engine2::ActionBundle

Inherits:
Object
  • Object
show all
Defined in:
lib/engine2/action.rb

Instance Method Summary collapse

Constructor Details

#initialize(action, action_names) ⇒ ActionBundle

Returns a new instance of ActionBundle.



219
220
221
222
# File 'lib/engine2/action.rb', line 219

def initialize action, action_names
    @action = action
    @action_names = action_names
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object



224
225
226
# File 'lib/engine2/action.rb', line 224

def method_missing name, *args, &blk
    @action_names.each{|an| @action[an].__send__(name, *args, &blk)}
end