On 6/30/06, Minkoo Seo <minkoo.seo@[...].com> wrote:> I've recently learned that irb and ruby (ruby interpreter) behave> differently often and that irb is not running on ruby interpreter.
You have learned incorrectly.
irb behaves differently than Ruby might otherwise behave because all
of the code entered is eval-ed when it's in a "complete" state for the
Ruby interpreter to use.
irb most *certainly* runs on top of Ruby. But there occasional
permissions/visibility differences (pretty much the only differences
that matter) which will bite someone's expectations.
-austin
--
Austin Ziegler * halostatue@[...].com * http://www.halostatue.ca/
* austin@[...].ca * http://www.halostatue.ca/feed/
* austin@zieglers.ca