Sha256: acdf1bef4767632654013de18fbc6efcd3fd93708e869dc892c6bfe68b8b9747

Contents?: true

Size: 523 Bytes

Versions: 32

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true

require 'eac_templates/variables/providers/base'

module EacTemplates
  module Variables
    module Providers
      class Generic < ::EacTemplates::Variables::Providers::Base
        class << self
          def accept?(variables_source)
            variables_source.is_a?(::Object)
          end
        end

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

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

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
eac_templates-0.7.1 lib/eac_templates/variables/providers/generic.rb
eac_tools-0.93.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_templates-0.7.0 lib/eac_templates/variables/providers/generic.rb
eac_tools-0.91.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_templates-0.5.1 lib/eac_templates/variables/providers/generic.rb
eac_tools-0.76.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.75.2 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.75.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.75.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.74.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.74.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.73.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.72.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.70.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.70.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.69.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.69.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.68.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.67.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.67.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb