Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
module IconvSpecs class Utf16Comparator def initialize(string) @string = string end def to_str @string end def ==(o) @string == o || flipped_string == o end def flipped_string @string.gsub(/(.)(.)/, '\2\1') end end end
This paste will be private.
From the Design Piracy series on my blog: