From: Warren Ferguson Date: 2010-08-08T08:26:14+09:00 Subject: Re: question about sub-class of array You're right, and I'm enjoying your book. Just to be clear, this solved the problem, replace the earlier to_bv method with this class String def to_bv # convert bit string of 0s and 1s, ordered msb to lsb, # to Bitvector, ordered lsb to msb v = self.reverse.split(//).map{|k| k.to_i(2)} Bitvector.new(v) end end So, I hope I understood your answer correctly. Thanks! -- Posted via http://www.ruby-forum.com/.