Method: ActionHandler::HandlerExtension#args
- Defined in:
- lib/action_handler/equip.rb
#args(*suppliers) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/action_handler/equip.rb', line 42 def args(*suppliers) raise '`args` does not accept block. Use `arg` to define custom argument' if block_given? config = ActionHandler::Config.get(self) suppliers.each do |supplier| config.add_args_supplier(supplier) end end |