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_tools-0.66.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.65.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.65.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.64.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.63.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.62.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.62.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_templates-0.5.0 lib/eac_templates/variables/providers/generic.rb
eac_tools-0.61.1 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_tools-0.61.0 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
eac_templates-0.4.0 lib/eac_templates/variables/providers/generic.rb
eac_tools-0.60.3 sub/eac_templates/lib/eac_templates/variables/providers/generic.rb