From: Trans Date: 2007-08-28T02:54:09+09:00 Subject: Re: More convenient #p? On Aug 27, 10:14 am, WATANABE Hirofumi wrote: > Hi, > > Trans wrote: > > Has anyone else every wished #p would passthru it's argument? Ie. Work > > like this: > > > def p(x) > > puts x.inspect > > x > > end > > % ruby -ve 'p "foo".gsub("o"){p "a"}' > ruby 1.9.0 (2007-08-28 patchlevel 0) [i386-linux] > "a" > "a" > "faa" Yea! T.