Exception: AbstractMapper::Errors::WrongRule

Inherits:
TypeError
  • Object
show all
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

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::SoleRule"
  freeze
end