Forum: Ruby Re: $binding global var?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4a9561ad5b2b9dc60c76993c9bed5b5e?d=identicon&s=25 Matthieu TC (Guest)
on 2007-05-29 08:45
(Received via mailing list)
Ah.. i see.

----- Original Message ----
From: Joel VanderWerf <>
To: ruby-talk ML <>
Sent: Tuesday, May 29, 2007 3:49:22 PM
Subject: Re: $binding global var?

Matthieu TC wrote:
> Hello,
> Can anyone satisfy my curiosity and tell me what the global variable $binding is for?
> I though it might be a default binding for eval calls but my tests didnt concur.

Irb uses $binding. But ruby does not:

$ ruby -ve 'p global_variables.grep(/binding/)'
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
This topic is locked and can not be replied to.