Class: EacConfig::YamlFileNode::Entry

Inherits:
NodeEntry
  • Object
show all
Defined in:
lib/eac_config/yaml_file_node/entry.rb

Instance Method Summary collapse

Methods inherited from NodeEntry

#secret_value, #to_s

Instance Method Details

#found?Boolean

Returns:

  • (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

#valueObject



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