Exception: AbstractMapper::Errors::WrongNode

Inherits:
TypeError
  • Object
show all
Defined in:
lib/abstract_mapper/errors/wrong_node.rb

Overview

An exception to be raised when wrong node is registered as a DSL command

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ WrongNode

Returns a new instance of WrongNode.



14
15
16
17
# File 'lib/abstract_mapper/errors/wrong_node.rb', line 14

def initialize(node)
  super "#{node} is not a subclass of AbstractMapper::AST::Node"
  IceNine.deep_freeze(self)
end