Exception: AbstractMapper::Errors::WrongRule
- Inherits:
-
TypeError
- Object
- TypeError
- AbstractMapper::Errors::WrongRule
- Defined in:
- lib/abstract_mapper/errors/wrong_rule.rb
Overview
An exception to be raised when wrong node is registered as a DSL command
Instance Method Summary collapse
-
#initialize(node) ⇒ WrongRule
constructor
A new instance of WrongRule.
Constructor Details
#initialize(node) ⇒ WrongRule
Returns a new instance of WrongRule.
14 15 16 17 |
# File 'lib/abstract_mapper/errors/wrong_rule.rb', line 14 def initialize(node) super "#{node} is not a subclass of AbstractMapper::Rules::Base" IceNine.deep_freeze(self) end |