Module: EacConfig::Node

Included in:
EnvvarsNode, YamlFileNode
Defined in:
lib/eac_config/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#write_nodeObject

Returns the value of attribute write_node.



13
14
15
# File 'lib/eac_config/node.rb', line 13

def write_node
  @write_node
end

Instance Method Details

#entry(path) ⇒ Object



20
21
22
# File 'lib/eac_config/node.rb', line 20

def entry(path)
  ::EacConfig::Entry.new(self, path)
end

#load_path[EacConfig::IncludePath]

Returns:

  • ([EacConfig::IncludePath])


25
26
27
# File 'lib/eac_config/node.rb', line 25

def load_path
  @load_path ||= ::EacConfig::LoadPath.new(self)
end

#recursive_loaded_nodesArray<EacConfig::Node>

Returns:



50
51
52
# File 'lib/eac_config/node.rb', line 50

def recursive_loaded_nodes
  ::EacConfig::LoadNodesSearch.new(self).result
end

#self_entry(path) ⇒ EacConfig::NodeEntry

Return a entry which search values only in the self node.



36
37
38
# File 'lib/eac_config/node.rb', line 36

def self_entry(path)
  self_entry_class.new(self, path)
end

#self_entry_classObject



40
41
42
# File 'lib/eac_config/node.rb', line 40

def self_entry_class
  self.class.const_get('Entry')
end

#self_loaded_nodesArray<EacConfig::Node>

Returns:



45
46
47
# File 'lib/eac_config/node.rb', line 45

def self_loaded_nodes
  load_path.paths.map { |node_path| load_node(node_path) }
end

#urlAddressable::URI

Returns:

  • (Addressable::URI)


30
31
32
# File 'lib/eac_config/node.rb', line 30

def url
  raise_abstract_method(__method__)
end