Simple CharDiff class written in Ruby