Exception: InvalidCommand

Inherits:
Exception
  • Object
show all
Defined in:
lib/robotgame/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ InvalidCommand

Returns a new instance of InvalidCommand.



3
4
5
# File 'lib/robotgame/exceptions.rb', line 3

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject

this is critical!



2
3
4
# File 'lib/robotgame/exceptions.rb', line 2

def message
  @message
end