Class: Enf::Elephant::Nope

Inherits:
Enf::Elephant show all
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

Methods inherited from Enf::Elephant

#include?

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