unbind and bind are new to 1.7.

-rich

> -----Original Message-----
> From: Shashank Date [mailto:sdate / kc.rr.com] 
> Sent: Sunday, September 29, 2002 5:59 PM
> To: ruby-talk ML
> Subject: Re: Method <=> Proc
> 
> 
> > Interesting, I have not seen the bind and unbind method
> > in the Pickaxe book, it seems I should have looked in
> > Ruby via public_methods.
> 
> What is even more interesting ...
> 
> C:\>ri unbind
> 
> C:\>ruby -Sx C:\ruby\bin\ri.rb unbind
> Don't know anything about a method called `unbind'.
> 
> C:\>ri bind
> 
> C:\>ruby -Sx C:\ruby\bin\ri.rb bind
> -------------------------------------------------------- 
> Kernel::binding
>      binding -> aBinding
> --------------------------------------------------------------
> ----------
>      Returns a Binding object, describing the variable and method
>      bindings at the point of call. This object can be used 
> when calling
>      eval to execute the evaluated command in this 
> environment. Also see
>      the description of Binding beginning on page 295.
>         def getBinding(param)
>           return binding
>         end
>         b = getBinding("hello")
>         eval "param", b   #=> "hello"
> 
> 
> C:\>ri rebind
> 
> C:\>ruby -Sx C:\ruby\bin\ri.rb rebind
> Don't know anything about a method called `rebind'.
> 
> C:\>ri -v
> 
> C:\>ruby -Sx C:\ruby\bin\ri.rb -v
> ri 0.8a
> 
> C:\>
> 
> 
> 
>