Exception: AbstractMapper::Errors::WrongNode
- Inherits:
-
TypeError
- Object
- TypeError
- AbstractMapper::Errors::WrongNode
- 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
-
#initialize(node) ⇒ WrongNode
constructor
A new instance of WrongNode.
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 |