Class: Enf::Elephant::Nope
- Inherits:
-
Enf::Elephant
- Object
- Enf::Elephant
- Enf::Elephant::Nope
- Defined in:
- lib/enf/elephant.rb
Overview
Null node, used to answer to unknown values
Instance Attribute Summary
Attributes inherited from Enf::Elephant
#children, #default_leave_value, #leave
Instance Method Summary collapse
-
#initialize(leave = false) ⇒ Nope
constructor
A new instance of Nope.
- #register!(_) ⇒ Object
Methods inherited from Enf::Elephant
Constructor Details
#initialize(leave = false) ⇒ Nope
Returns a new instance of Nope.
26 27 28 29 |
# File 'lib/enf/elephant.rb', line 26 def initialize(leave = false) @leave = leave super(leave) end |
Instance Method Details
#register!(_) ⇒ Object
31 32 33 |
# File 'lib/enf/elephant.rb', line 31 def register!(_) fail CannotRegister end |