lib/picky/internals/indexing/index.rb in picky-2.3.0 vs lib/picky/internals/indexing/index.rb in picky-2.4.0
- old
+ new
@@ -26,10 +26,11 @@
@name = name
@source = options[:source]
@after_indexing = options[:after_indexing]
@bundle_class = options[:indexing_bundle_class] # TODO This should actually be a fixed parameter.
@tokenizer = options[:tokenizer]
+ @key_format = options[:key_format]
@categories = []
end
# TODO Spec. Doc.
@@ -67,9 +68,18 @@
category :author
end
NO_SOURCE
)
+ end
+
+ #
+ #
+ def define_key_format key_format
+ @key_format = key_format
+ end
+ def key_format
+ @key_format || :to_i
end
#
#
def find category_name
\ No newline at end of file