Sha256: 2f0bf85693830529cfdf33940749153c5ad97d1ec69331fcbfe14ba2bd758a4a

Contents?: true

Size: 534 Bytes

Versions: 15

Compression:

Stored size: 534 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 ||= Tokenizer.new
              end
              define_method :source do
                new_source
              end
            end

          end

        end

      end
    end
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
picky-3.2.0 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.13 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.12 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.11 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.10 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.9 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.8 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.7 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.6 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.5 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.4 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.3 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.2 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.1 lib/picky/indexing/wrappers/category/location.rb
picky-3.1.0 lib/picky/indexing/wrappers/category/location.rb