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-2.2.0 lib/riddle/0.9.9/client/filter.rb
riddle-2.1.0 lib/riddle/0.9.9/client/filter.rb
riddle-2.0.0 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.12 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.11 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.10 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.9 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.8 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.7 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.6 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.5 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.4 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.3 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.2 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.1 lib/riddle/0.9.9/client/filter.rb
riddle-1.5.0 lib/riddle/0.9.9/client/filter.rb
riddle-1.4.0 lib/riddle/0.9.9/client/filter.rb
riddle-1.3.3 lib/riddle/0.9.9/client/filter.rb
riddle-1.3.2 lib/riddle/0.9.9/client/filter.rb
riddle-1.3.1 lib/riddle/0.9.9/client/filter.rb