Sha256: f51865942b3afdcde93803cde5071bab5c330dd19c9fa98b3fbc69a0fd817cc1
Contents?: true
Size: 481 Bytes
Versions: 27
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true require 'eac_templates/variables/not_found_error' module EacTemplates module Variables module Providers 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 end
Version data entries
27 entries across 27 versions & 2 rubygems