Sha256: 2468887c618883c8903cea68e6c0bcaf18f68a2c32d7103c18ee0f14b7b5dcca
Contents?: true
Size: 710 Bytes
Versions: 32
Compression:
Stored size: 710 Bytes
Contents
# frozen_string_literal: true require 'eac_config/node' require 'eac_templates/variables/providers/base' module EacTemplates module Variables module Providers class ConfigReader < ::EacTemplates::Variables::Providers::Base class << self def accept?(variables_source) return false unless variables_source.respond_to?(:entry) entry = variables_source.entry(:any_value) entry.respond_to?(:value) && entry.respond_to?(:found?) end end def variable_exist?(name) source.entry(name).found? end def variable_fetch(name) source.entry(name).value end end end end end
Version data entries
32 entries across 32 versions & 2 rubygems