# File lib/libgenetics.rb, line 17 def initialize(bitstring_or_length) if bitstring_or_length.class == Fixnum @genome = [] (1..bitstring_or_length).each do |i| @genome << rand(2) end else @genome = bitstring_or_length end end