lib/picky/query/combination.rb in picky-4.4.1 vs lib/picky/query/combination.rb in picky-4.4.2

- old
+ new

@@ -1,19 +1,15 @@ module Picky module Query - # Describes the combination of a token (the text) and - # the index (the bundle): [text, index_bundle] + # Describes the Combination of a Token (the text) and + # the index (the bundle): [text, index_bundle]. # - # A combination is a single part of an allocation: - # [..., [text2, index_bundle2], ...] + # An Allocation consists of an ordered number of Combinations. # - # An allocation consists of a number of combinations: - # [[text1, index_bundle1], [text2, index_bundle2], [text3, index_bundle1]] - # - class Combination # :nodoc:all + class Combination attr_reader :token, :category def initialize token, category @@ -72,10 +68,10 @@ def to_result [category_name, *token.to_result] end # Example: - # "exact title:Peter*:peter" + # "exact title:Peter*:peter" # def to_s "#{category.bundle_for(token).identifier}(#{to_result.join(':')})" end \ No newline at end of file