class ThinkingSphinx::Masks::GroupEnumeratorsMask
Public Class Methods
new(search)
click to toggle source
# File lib/thinking_sphinx/masks/group_enumerators_mask.rb, line 2 def initialize(search) @search = search end
Public Instance Methods
can_handle?(method)
click to toggle source
# File lib/thinking_sphinx/masks/group_enumerators_mask.rb, line 6 def can_handle?(method) public_methods(false).include?(method) end
each_with_count() { |search, row| ... }
click to toggle source
# File lib/thinking_sphinx/masks/group_enumerators_mask.rb, line 10 def each_with_count(&block) @search.raw.each_with_index do |row, index| yield @search[index], row[ThinkingSphinx::SphinxQL.count] end end
each_with_group() { |search, row| ... }
click to toggle source
# File lib/thinking_sphinx/masks/group_enumerators_mask.rb, line 16 def each_with_group(&block) @search.raw.each_with_index do |row, index| yield @search[index], row[ThinkingSphinx::SphinxQL.group_by] end end
each_with_group_and_count() { |search, row, row| ... }
click to toggle source
# File lib/thinking_sphinx/masks/group_enumerators_mask.rb, line 22 def each_with_group_and_count(&block) @search.raw.each_with_index do |row, index| yield @search[index], row[ThinkingSphinx::SphinxQL.group_by], row[ThinkingSphinx::SphinxQL.count] end end