From: "Mikael Høilund" Date: 2008-11-09T04:25:52+09:00 Subject: Re: named scope lambda string substitution problem On Nov 8, 2008, at 20:07, jdwy wrote: > ah! right you are. that solves the problem. That does seem like a > weird ruby oddity. I wonder if there's a reason for it? > Thanks, > -Jeff Sorry about the double post earlier (and lack of special characters), Mail.app didn't want as I. The reason it doesn't work is that the parser thinks the {…} means a hash instead of a block. -- a,b=%Q=Z,O^NPO\r4_PV\\PI\x15^-\x0\v=,email=%\%%%c\%115%%# Mikael Hoilund, CTO okay=%#;hmm=(0...a.size).map{|i|((a[i]-email[i]+2)%128).# of Meta.io ApS from chr}.join;!email.gsub!'o',"%c%c"%[3+?0.<<(2),?G.~@];aha=############# Denmark hmm.scan(/#{'(.)'*5}/);!puts(email[1..-12]+aha.shift.zip(*aha).join)# Ruby <3