Class: ApplicationConfig::DataStructures::AlwaysNullNode
- Inherits:
-
Object
- Object
- ApplicationConfig::DataStructures::AlwaysNullNode
show all
- Defined in:
- lib/application_config/data_structures/always_null_node.rb
Instance Method Summary
collapse
Constructor Details
Returns a new instance of AlwaysNullNode.
5
6
7
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 5
def initialize
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
29
30
31
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 29
def method_missing(method)
ApplicationConfig::DataStructures::AlwaysNullNode.new
end
|
Instance Method Details
#==(other) ⇒ Object
17
18
19
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 17
def ==(other)
other == nil
end
|
#[](key) ⇒ Object
25
26
27
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 25
def [](key)
ApplicationConfig::DataStructures::AlwaysNullNode.new
end
|
#eql?(other) ⇒ Boolean
21
22
23
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 21
def eql?(other)
other.eql?(nil)
end
|
#nil? ⇒ Boolean
9
10
11
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 9
def nil?
return true
end
|
#to_s ⇒ Object
13
14
15
|
# File 'lib/application_config/data_structures/always_null_node.rb', line 13
def to_s
""
end
|