Class: EacConfig::YamlFileNode::Entry
- Defined in:
- lib/eac_config/yaml_file_node/entry.rb
Instance Method Summary collapse
Methods inherited from NodeEntry
Instance Method Details
#found? ⇒ Boolean
12 13 14 |
# File 'lib/eac_config/yaml_file_node/entry.rb', line 12 def found? paths_hash.key?(to_paths_hash_key) end |
#value ⇒ Object
16 17 18 |
# File 'lib/eac_config/yaml_file_node/entry.rb', line 16 def value paths_hash[to_paths_hash_key] end |
#value=(a_value) ⇒ Object
20 21 22 |
# File 'lib/eac_config/yaml_file_node/entry.rb', line 20 def value=(a_value) node.persist_data(paths_hash.write(to_paths_hash_key, a_value).root.to_h) end |