Exception: AlreadyAnOnlyChild

Inherits:
Exception
  • Object
show all
Defined in:
lib/already_an_only_child.rb

Instance Method Summary collapse

Constructor Details

#initialize(node_name) ⇒ AlreadyAnOnlyChild

Returns a new instance of AlreadyAnOnlyChild.



2
3
4
5
6
7
# File 'lib/already_an_only_child.rb', line 2

def initialize node_name
  super <<MESSAGE
The '#{node_name}' node has already been accessed as a single child, but you are now trying to use it as a collection.
Do not try to access Peachy::Proxies in a mixed manner in your implementation.
MESSAGE
end