Sha256: 7e9c8c449b2cc7b48371d537e9a4a73629ea53bde59c632abcd252e870e7fe09
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
# frozen_string_literal: true require 'addressable' require 'eac_config/entry' require 'eac_config/entry_search' require 'eac_config/node' require 'eac_ruby_utils/core_ext' require 'eac_ruby_utils/yaml' module EacConfig class YamlFileNode include ::EacConfig::Node common_constructor :path do self.path = path.to_pathname end def data @data ||= ::EacRubyUtils::Yaml.load_file(path) end def url ::Addressable::URI.parse("file://#{path.expand_path}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eac_config-0.2.0 | lib/eac_config/yaml_file_node.rb |