# File lib/libgenetics.rb, line 93
  def gray_decode
    binary = self[0..0]
    (1...self.length).each do |i|
      if (binary[i - 1] == 1) ^ (self[i] == 1)
        binary << 1
      else
        binary << 0
      end
    end
    binary
  end