Exception: AbstractMapper::Errors::UnknownCommand

Inherits:
NameError
  • Object
show all
Defined in:
lib/abstract_mapper/errors/unknown_command.rb

Overview

An exception to be raised when unknown DSL methods is used

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnknownCommand

Returns a new instance of UnknownCommand.



16
17
18
19
# File 'lib/abstract_mapper/errors/unknown_command.rb', line 16

def initialize(name)
  super "'#{name}' is not a registered DSL command"
  IceNine.deep_freeze(self)
end