Class: LSL::CommandExecution::Single
- Defined in:
- lib/lsl/command/execution.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#input_args ⇒ Object
Returns the value of attribute input_args.
Attributes inherited from Base
Instance Method Summary collapse
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
44 45 46 |
# File 'lib/lsl/command/execution.rb', line 44 def command @command end |
#input_args ⇒ Object
Returns the value of attribute input_args.
44 45 46 |
# File 'lib/lsl/command/execution.rb', line 44 def input_args @input_args end |
Instance Method Details
#my_eval(str, ops) ⇒ Object
53 54 55 56 57 |
# File 'lib/lsl/command/execution.rb', line 53 def my_eval(str,ops) OpenStruct.new(ops).instance_eval(str) rescue => exp puts "failed #{exp.}" end |
#run! ⇒ Object
79 80 81 82 83 |
# File 'lib/lsl/command/execution.rb', line 79 def run! result rescue => exp puts "command failed #{exp.}" end |