Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#to_msgpack(*args) ⇒ Object
call-seq: float.to_msgpack(out = ”) -> String.
Instance Method Details
#to_msgpack(*args) ⇒ Object
call-seq:
float.to_msgpack(out = '') -> String
Serializes the Float into raw bytes.
153 154 155 156 157 158 |
# File 'ext/pack.c', line 153 static VALUE MessagePack_Float_to_msgpack(int argc, VALUE *argv, VALUE self) { ARG_BUFFER(out, argc, argv); msgpack_pack_double(out, rb_num2dbl(self)); return out; } |