Sha256: f360cda2901c523d28cc0a1615fc45c6e77d7138d864d0a09f57480e0996d113
Contents?: true
Size: 439 Bytes
Versions: 76
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true require 'eac_templates/variable_not_found_error' module EacTemplates module VariableProviders class Base attr_reader :source def initialize(source) @source = source end def variable_value(name) return variable_fetch(name) if variable_exist?(name) raise VariableNotFoundError, "Variable \"#{name}\" not found in #{source}" end end end end
Version data entries
76 entries across 76 versions & 4 rubygems