Sha256: 76162769452692c227be20d060af542044de75d1e294d27571435b2b316f5257
Contents?: true
Size: 819 Bytes
Versions: 22
Compression:
Stored size: 819 Bytes
Contents
module Picky module Wrappers module Category module Location # THINK Is this the best way to do this? # def self.wrap category, grid, precision = 1, anchor = 0.0 wrapped_exact = Wrappers::Bundle::Location.new category.exact, grid: grid, precision: precision, anchor: anchor category.class_eval do # Uses a basic tokenizer. # def tokenizer @tokenizer ||= Tokenizer.new end # Both use the exact index. # # TODO Necessary to wrap? # define_method :exact do wrapped_exact end define_method :partial do wrapped_exact end end end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems