lib/picky/categories.rb in picky-4.10.0 vs lib/picky/categories.rb in picky-4.11.0

- old
+ new

@@ -27,13 +27,25 @@ # def clear_categories @categories = [] @category_hash = {} end + + # Updates the qualifier ("qualifier:searchterm") mapping. + # + # Example: + # You dynamically add a new category to an index. + # To add the qualifiers to a search, you call this + # method. + # + def mapper + @mapper ||= QualifierMapper.new self + end # Add the given category to the list of categories. # def << category + @mapper = nil # TODO Move. (Resets category mapping) categories << category category_hash[category.name] = category end # Find a given category in the categories. \ No newline at end of file