Sha256: a97d21a29f9b1d4f782ea85914ab58166522889c68f095554a7af7188648b8a3

Contents?: true

Size: 525 Bytes

Versions: 32

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

require 'eac_templates/variables/providers/base'

module EacTemplates
  module Variables
    module Providers
      class EntriesReader < ::EacTemplates::Variables::Providers::Base
        class << self
          def accept?(variables_source)
            variables_source.respond_to?(:read_entry)
          end
        end

        def variable_exist?(_name)
          true
        end

        def variable_fetch(name)
          source.read_entry(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/entries_reader.rb
eac_tools-0.93.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_templates-0.7.0 lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.91.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_templates-0.5.1 lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.76.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.75.2 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.75.1 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.75.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.74.1 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.74.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.73.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.72.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.70.1 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.70.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.69.1 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.69.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.68.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.67.1 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
eac_tools-0.67.0 sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb