Class: CommandHandler::Command

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props, &run) ⇒ Command

Returns a new instance of Command.



7
8
9
10
# File 'lib/advanced_ruby_command_handler/app/command.rb', line 7

def initialize(props, &run)
  @props = load_proprieties(props)
  @run = run
end

Instance Attribute Details

#propsObject (readonly)

Returns the value of attribute props.



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

def props
  @props
end

#runObject (readonly)

Returns the value of attribute run.



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

def run
  @run
end