Sha256: c347ead3f888186f4d739091b3ed03614c0abf07e21beba2eb9ab1304918fa81

Contents?: true

Size: 630 Bytes

Versions: 123

Compression:

Stored size: 630 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/templates/variable_providers/base'

module EacRubyUtils
  module Templates
    module VariableProviders
      class Hash < ::EacRubyUtils::Templates::VariableProviders::Base
        class << self
          def accept?(variables_source)
            variables_source.is_a?(::Hash)
          end
        end

        def initialize(source)
          super(source.with_indifferent_access)
        end

        def variable_exist?(name)
          source.key?(name)
        end

        def variable_fetch(name)
          source.fetch(name)
        end
      end
    end
  end
end

Version data entries

123 entries across 123 versions & 3 rubygems

Version Path
avm-tools-0.76.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
eac_ruby_utils-0.49.1 lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.75.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.75.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.74.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
eac_ruby_utils-0.49.0 lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.74.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
eac_ruby_utils-0.48.0 lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.73.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.72.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
eac_ruby_utils-0.47.0 lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.71.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.70.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
ehbrs-tools-0.15.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
ehbrs-tools-0.14.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.70.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.70.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.69.3 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
ehbrs-tools-0.14.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
avm-tools-0.69.2 vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb