Sha256: a2c089e1fbe6e161726a55be9e2a176ff47c4d120bdb473de7a63e58f4e5f5e4

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 Bytes

Contents

module Indexing
  module Wrappers
    module Category

      module Location

        def self.install_on category, grid, precision = 1
          new_source = Sources::Wrappers::Location.new category.source, grid, precision

          category.class_eval do
            def tokenizer
              @tokenizer ||= Tokenizers::Index.new
            end
            define_method :source do
              new_source
            end
          end

        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/indexing/wrappers/category/location.rb
picky-2.6.0 lib/picky/indexing/wrappers/category/location.rb