From: Martin Hansen Date: 2011-03-03T21:43:22+09:00 Subject: Re: Monkey patching class String to add bitwise operators Sorry for the delayed answer, I have been away. I fail to see how I can fix my code. Adding chr doesnt do the trick (same error): new << (self[i].ord ^ str[i].ord).chr Cheers, Martin -- Posted via http://www.ruby-forum.com/.