Class: Command
- Inherits:
-
Object
- Object
- Command
- Defined in:
- lib/advanced_ruby_command_handler/command.rb
Instance Attribute Summary collapse
-
#run ⇒ Object
readonly
Returns the value of attribute run.
Instance Method Summary collapse
-
#initialize(props, &block) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(props, &block) ⇒ Command
Returns a new instance of Command.
6 7 8 9 |
# File 'lib/advanced_ruby_command_handler/command.rb', line 6 def initialize(props, &block) @run = block load_proprieties(props) end |
Instance Attribute Details
#run ⇒ Object (readonly)
Returns the value of attribute run.
4 5 6 |
# File 'lib/advanced_ruby_command_handler/command.rb', line 4 def run @run end |