class DNAHamming::Pair
Public Instance Methods
same?()
click to toggle source
# File lib/dna_hamming/pair.rb, line 3 def same? inject(:eql?) end
swap!()
click to toggle source
# File lib/dna_hamming/pair.rb, line 7 def swap! members.zip(entries.reverse) {|a,b| self[a] = b} end