Method: Mockingbird::Script#add_command
- Defined in:
- lib/mockingbird/script.rb
#add_command(command = nil, &block) ⇒ Object
Not really part of the public API but users could use this to implement their own fancy command
89 90 91 92 |
# File 'lib/mockingbird/script.rb', line 89 def add_command(command=nil,&block) command = Commands::Command.new(&block) if block_given? current_connection.add_command(command) end |