Class: Command

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_ruby_command_handler/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#runObject (readonly)

Returns the value of attribute run.



4
5
6
# File 'lib/advanced_ruby_command_handler/command.rb', line 4

def run
  @run
end