Sha256: ee93c9f78e999e9fb378d8779a31a7b0e502be36e8eaf1d65c8e660ae7643a70

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

module IIFinder
  class Config
    class_attribute :data

    self.data = {
      lookup_cache: true,
      merge_relation: true
    }

    data.keys.each do |key|
      define_singleton_method "#{key}" do
        data[key]
      end

      define_singleton_method "#{key}=" do |val|
        data[key] = val
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ii_finder-2.0.1 lib/ii_finder/config.rb
ii_finder-2.0.0 lib/ii_finder/config.rb
ii_finder-1.2.0 lib/ii_finder/config.rb
ii_finder-1.1.2 lib/ii_finder/config.rb
ii_finder-1.1.1 lib/ii_finder/config.rb
ii_finder-1.1.0 lib/ii_finder/config.rb
ii_finder-1.0.0 lib/ii_finder/config.rb