Sha256: 5641dc9bff23549218a40674cd8c3c4cb90a9f39d1ebbb704c508e9a33a20609

Contents?: true

Size: 382 Bytes

Versions: 40

Compression:

Stored size: 382 Bytes

Contents

class Riddle::Client::Filter
  #
  
  private
  
  def append_integer_range(message, range)
    message.append_64bit_ints self.values.first, self.values.last
  end
  
  def append_array(message, array)
    message.append_64bit_ints *array.collect { |val|
      case val
      when TrueClass
        1
      when FalseClass
        0
      else
        val
      end
    }
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
riddle-1.3.0 lib/riddle/0.9.9/client/filter.rb
riddle-1.2.2 lib/riddle/0.9.9/client/filter.rb
riddle-1.2.1 lib/riddle/0.9.9/client/filter.rb
riddle-1.2.0 lib/riddle/0.9.9/client/filter.rb
riddle-1.1.0 lib/riddle/0.9.9/client/filter.rb
skalee-thinking-sphinx-1.3.14.2 vendor/riddle/lib/riddle/0.9.9/client/filter.rb
skalee-thinking-sphinx-1.3.14.1 vendor/riddle/lib/riddle/0.9.9/client/filter.rb
riddle-1.0.12 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.11 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.10 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.9 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.8 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.7 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.6 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.5 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.4 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.3 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.2 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.1 lib/riddle/0.9.9/client/filter.rb
riddle-1.0.0 lib/riddle/0.9.9/client/filter.rb