Exception: Ampt::InvalidCommand

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ampt.rb

Overview

Raised if an invalid command is encountered.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cmdObject (readonly)

Returns the value of attribute cmd.



13
14
15
# File 'lib/ampt.rb', line 13

def cmd
  @cmd
end