From: Bill Atkins Date: 2004-10-27T13:06:10+09:00 Subject: Re: Learning erb I think what he's saying is that <%= "34" %> will output a 34 to the result, but <% puts 34 %> will output that stream to STDOUT. So if he were calling ERb#result, he'd get the result of the former in its return value but the second statement's output wouldn't go into the result string. Bill On Wed, 27 Oct 2004 12:25:18 +0900, James Edward Gray II wrote: > On Oct 26, 2004, at 9:32 PM, Gavin Kistner wrote: > > > I'm not sure what your question is. > > Maybe I'm not either. Thanks for trying to help me. > > I believe I actually understand what's going on, but the short blurb in > the back of the Pickaxe II confuses me. > > Let me try asking in one more way to see if it changes the answers I'm > getting. Under what circumstances will <% ... %> add to the output? > > Thanks. > > James Edward Gray II > > P.S. erb may be pretty simple, but dang I'm doing some cool stuff with > it over here! Madlibs anyone? > > P.P.S. Is it just me or is Ruby's StdLib of excellent quality, > especially compared to say Perl's StdLib. I'm constantly awed by what > I find hiding in standard Ruby. > >