Sha256: bfaa8be4a2b2ee72f2a0eb9574430523566234489056db5bb20077d47956c2af
Contents?: true
Size: 731 Bytes
Versions: 31
Compression:
Stored size: 731 Bytes
Contents
# frozen_string_literal: true require 'eac_config/entry_path' require 'eac_config/node_entry' require 'eac_ruby_utils/core_ext' module EacConfig class YamlFileNode class Entry < ::EacConfig::NodeEntry enable_simple_cache def found? paths_hash.key?(to_paths_hash_key) end def value paths_hash[to_paths_hash_key] end def value=(a_value) paths_hash[to_paths_hash_key] = a_value node.persist_data(paths_hash.root.to_h) end private # @return [EacConfig::PathsHash] def paths_hash_uncached ::EacConfig::PathsHash.new(node.data) end def to_paths_hash_key path.parts.join('.') end end end end
Version data entries
31 entries across 31 versions & 3 rubygems