Method: Mothership#invoke
- Defined in:
- lib/mothership/base.rb
#invoke(name, inputs = {}, given = {}, global = @input ? @input.global : {}) ⇒ Object
invoke a command with inputs
70 71 72 73 74 75 76 77 |
# File 'lib/mothership/base.rb', line 70 def invoke( name, inputs = {}, given = {}, global = @input ? @input.global : {}) if cmd = @@commands[name] cmd.invoke(inputs, given, global) else unknown_command(name) end end |