irb(main):001:0> eval("%q{\r\n-\n\r}")
=> "\n-\n\r"

\r\n is converted into \n but \n\r is not.

-- 
Posted via http://www.ruby-forum.com/.