>andy> I wrote the following code to create a BitVector type as an extension
    >andy> some time ago.  It was a quick hack, and I make no guarantees
    >andy> that it even works with the latest verions...
    >
    >I wrote too.
    >
    >  --> http://www2a.biglobe.ne.jp/~seki/ruby/bits.rb

See?  What a popular concept :-)

As I recall, I had to write the C version due to performance
constraints.  I was implementing a large Bloom filter, and needed
to twiddle those bits fast.

/\ndy