Sha256: dec4a33762e5cb5bcc0cbd7bb7c5985c1b3d84f437c72e2cf7664c68b2afb8cf

Contents?: true

Size: 413 Bytes

Versions: 9

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
riddle-2.4.3 lib/riddle/0.9.9/client/filter.rb
riddle-2.4.2 lib/riddle/0.9.9/client/filter.rb
riddle-2.4.1 lib/riddle/0.9.9/client/filter.rb
riddle-2.4.0 lib/riddle/0.9.9/client/filter.rb
riddle-2.3.2 lib/riddle/0.9.9/client/filter.rb
riddle-2.3.1 lib/riddle/0.9.9/client/filter.rb
riddle-2.3.0 lib/riddle/0.9.9/client/filter.rb
riddle-2.2.2 lib/riddle/0.9.9/client/filter.rb
riddle-2.2.1 lib/riddle/0.9.9/client/filter.rb