Exception: Ampt::InvalidCommand
- Inherits:
-
StandardError
- Object
- StandardError
- Ampt::InvalidCommand
- Defined in:
- lib/ampt.rb
Overview
Raised if an invalid command is encountered.
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
Instance Method Summary collapse
-
#initialize(cmd) ⇒ InvalidCommand
constructor
A new instance of InvalidCommand.
Constructor Details
#initialize(cmd) ⇒ InvalidCommand
Returns a new instance of InvalidCommand.
14 15 16 |
# File 'lib/ampt.rb', line 14 def initialize(cmd) @cmd = cmd end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
13 14 15 |
# File 'lib/ampt.rb', line 13 def cmd @cmd end |