Exception: AlreadyAnOnlyChild
- Inherits:
-
Exception
- Object
- Exception
- AlreadyAnOnlyChild
- Defined in:
- lib/already_an_only_child.rb
Instance Method Summary collapse
-
#initialize(node_name) ⇒ AlreadyAnOnlyChild
constructor
A new instance of AlreadyAnOnlyChild.
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 |