Sha256: 5f6985171f2a417756043e53b2dc2c9510884d7a6eee2db490350b6cd5874beb

Contents?: true

Size: 542 Bytes

Versions: 7

Compression:

Stored size: 542 Bytes

Contents

module Picky

  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

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
picky-3.0.1 lib/picky/indexing/wrappers/category/location.rb
picky-3.0.0 lib/picky/indexing/wrappers/category/location.rb
picky-3.0.0.pre5 lib/picky/indexing/wrappers/category/location.rb
picky-3.0.0.pre4 lib/picky/indexing/wrappers/category/location.rb
picky-3.0.0.pre3 lib/picky/indexing/wrappers/category/location.rb
picky-3.0.0.pre2 lib/picky/indexing/wrappers/category/location.rb
picky-3.0.0.pre1 lib/picky/indexing/wrappers/category/location.rb