Module: EacConfig::Node
- Included in:
- EnvvarsNode, YamlFileNode
- Defined in:
- lib/eac_config/node.rb
Instance Attribute Summary collapse
-
#write_node ⇒ Object
Returns the value of attribute write_node.
Instance Method Summary collapse
- #entry(path) ⇒ Object
- #load_path ⇒ [EacConfig::IncludePath]
- #recursive_loaded_nodes ⇒ Array<EacConfig::Node>
-
#self_entry(path) ⇒ EacConfig::NodeEntry
Return a entry which search values only in the self node.
- #self_entry_class ⇒ Object
- #self_loaded_nodes ⇒ Array<EacConfig::Node>
- #url ⇒ Addressable::URI
Instance Attribute Details
#write_node ⇒ Object
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]
25 26 27 |
# File 'lib/eac_config/node.rb', line 25 def load_path @load_path ||= ::EacConfig::LoadPath.new(self) end |
#recursive_loaded_nodes ⇒ Array<EacConfig::Node>
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_class ⇒ Object
40 41 42 |
# File 'lib/eac_config/node.rb', line 40 def self_entry_class self.class.const_get('Entry') end |
#self_loaded_nodes ⇒ Array<EacConfig::Node>
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 |
#url ⇒ Addressable::URI
30 31 32 |
# File 'lib/eac_config/node.rb', line 30 def url raise_abstract_method(__method__) end |