Sha256: 1df17eb731077676aeb7e44338e0bdad6db184f92f685efae95e2f37a4b40f56

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

module IIFinder
  class Config
    class_attribute :data

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

    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

5 entries across 5 versions & 1 rubygems

Version Path
ii_finder-2.3.0 lib/ii_finder/config.rb
ii_finder-2.2.2 lib/ii_finder/config.rb
ii_finder-2.2.1 lib/ii_finder/config.rb
ii_finder-2.2.0 lib/ii_finder/config.rb
ii_finder-2.1.0 lib/ii_finder/config.rb