lib/riddle/client/message.rb in riddle-0.9.8.1533.10 vs lib/riddle/client/message.rb in riddle-1.0.0

- old
+ new

@@ -33,9 +33,13 @@ # Append a float def append_float(float) @message << [float].pack('f').unpack('L*').pack("N") end + def append_boolean(bool) + append_int(bool ? 1 : 0) + end + # Append multiple integers def append_ints(*ints) ints.each { |int| append_int(int) } end \ No newline at end of file