Sha256: d10fef6c460b8c4308f9ae522a405b039521e0247625dd8f98fc1241e6c69e47
Contents?: true
Size: 516 Bytes
Versions: 5
Compression:
Stored size: 516 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 ::EacTemplates::Variables::NotFoundError, "Variable \"#{name}\" not found in #{source}" end end end end end
Version data entries
5 entries across 5 versions & 2 rubygems