Peter Hanning
2006-11-14 05:59:49 UTC
Someone (Ben?) asked at the last meeting about finding the calling method's
Binding. I happened to stumble upon this today;
http://extensions.rubyforge.org/rdoc/index.html. Check out the Binding
extension. Is this what you were looking for?
Pardon my ignorance but will the parent binding still be valid, having
exited and restarted irb like what was shown in the demo? Or was the intent
simply to reach back into the main irb Binding of the one and the same irb
session from a method defined in .irbrc?
Peter, Ruby newbie
Binding. I happened to stumble upon this today;
http://extensions.rubyforge.org/rdoc/index.html. Check out the Binding
extension. Is this what you were looking for?
Pardon my ignorance but will the parent binding still be valid, having
exited and restarted irb like what was shown in the demo? Or was the intent
simply to reach back into the main irb Binding of the one and the same irb
session from a method defined in .irbrc?
Peter, Ruby newbie