Class: Botz::Command
- Inherits:
-
Object
- Object
- Botz::Command
- Defined in:
- lib/botz/command.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
Returns the value of attribute definition.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Instance Method Summary collapse
-
#initialize(definition) ⇒ Command
constructor
A new instance of Command.
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
#definition ⇒ Object (readonly)
Returns the value of attribute definition.
4 5 6 |
# File 'lib/botz/command.rb', line 4 def definition @definition end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
5 6 7 |
# File 'lib/botz/command.rb', line 5 def shell @shell end |