Sha256: 722c90e0fa3420ff79846ee76b1194ce10c4432cbeb28b47c846139e3356a600
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
class ThinkingSphinx::Masks::GroupEnumeratorsMask def initialize(search) @search = search end def each_with_count(&block) @search.raw.each_with_index do |row, index| yield @search[index], row['@count'] end end def each_with_group(&block) @search.raw.each_with_index do |row, index| yield @search[index], row['@groupby'] end end def each_with_group_and_count(&block) @search.raw.each_with_index do |row, index| yield @search[index], row['@groupby'], row['@count'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems