Class: ApplicationConfig::DataStructures::ValueNode

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/application_config/data_structures/value_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ ValueNode

Returns a new instance of ValueNode.



8
9
10
# File 'lib/application_config/data_structures/value_node.rb', line 8

def initialize(value)
  @value = value
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name) ⇒ Object



16
17
18
# File 'lib/application_config/data_structures/value_node.rb', line 16

def method_missing(method_name)
  ApplicationConfig::DataStructures::AlwaysNullNode.new
end

Instance Method Details

#[](key) ⇒ Object



12
13
14
# File 'lib/application_config/data_structures/value_node.rb', line 12

def [](key)
  ApplicationConfig::DataStructures::AlwaysNullNode.new
end