Class: Botz::Command

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition) ⇒ Command

Returns a new instance of Command.



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

def initialize(definition)
  @definition = definition
  @shell = Botz::Shell.new(definition: definition)
end

Instance Attribute Details

#definitionObject (readonly)

Returns the value of attribute definition.



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

def definition
  @definition
end

#shellObject (readonly)

Returns the value of attribute shell.



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

def shell
  @shell
end