Hi, I need to create binary data from Ruby to send via network some
structure like this:

- field 1:  1 bit
- field 2:  1 bit
- field 3:  1 bit
- field 4:  1 bit
- field 5:  4 bits
- field 6:  1 bit
- field 7:  7 bits
- field 8:  16 bits
(and so on)

Which is the proer way to generate such binary data from Ruby?

Thanks a lot.




-- 
IƱaki Baz Castillo
<ibc / aliax.net>