Class: Predicator::Nodes::NilClassNode
- Inherits:
-
BaseNode
- Object
- BaseNode
- Predicator::Nodes::NilClassNode
show all
- Defined in:
- lib/predicator/nodes/nil_class_node.rb
Instance Attribute Summary
Attributes inherited from BaseNode
#value
Instance Method Summary
collapse
Methods inherited from BaseNode
#blank?, class_for, #compare_to_nil, #comparison_method, #initialize, #present?
Instance Method Details
#compare_to_date ⇒ Object
8
9
10
|
# File 'lib/predicator/nodes/nil_class_node.rb', line 8
def compare_to_date
raise NilValueError
end
|
#compare_to_fixnum ⇒ Object
12
13
14
|
# File 'lib/predicator/nodes/nil_class_node.rb', line 12
def compare_to_fixnum
raise NilValueError
end
|
#compare_to_float ⇒ Object
16
17
18
|
# File 'lib/predicator/nodes/nil_class_node.rb', line 16
def compare_to_float
raise NilValueError
end
|
#compare_to_string ⇒ Object
20
21
22
|
# File 'lib/predicator/nodes/nil_class_node.rb', line 20
def compare_to_string
raise NilValueError
end
|
#type ⇒ Object
4
5
6
|
# File 'lib/predicator/nodes/nil_class_node.rb', line 4
def type
:nil
end
|