From: Joe Van Dyk Date: 2005-04-26T02:54:13+09:00 Subject: Re: irb question On 4/25/05, Joe Van Dyk wrote: > On 4/25/05, Brian Schr�der wrote: > > On 25/04/05, Joe Van Dyk wrote: > > > Hi, > > > > > > I'd like to be able to run a ruby program that would initialize a few > > > objects, require a few libraries, and then dump me into an irb shell > > > (that has access to those objects). How would I do that? > > > > > > Thanks, > > > Joe > > > > > > > > > > have a look at breakpoint.rb. > > > > http://dev-utils.rubyforge.org/ > > > > % cat t.rb > require 'dev-utils/debug' > > % ruby t.rb > /home/mz652c/mine-linux/lib/ruby/site_ruby/1.8/dev-utils/debug/irb.rb:8:in > `require': No such file to load -- extensions/binding (LoadError) > from /home/mz652c/mine-linux/lib/ruby/site_ruby/1.8/dev-utils/debug/irb.rb:8 > from /home/mz652c/mine-linux/lib/ruby/site_ruby/1.8/dev-utils/debug.rb:28:in > `require' > from /home/mz652c/mine-linux/lib/ruby/site_ruby/1.8/dev-utils/debug.rb:28 > from t.rb:2:in `require' > from t.rb:2 > > Ideas? Nevermind... need the extension library. :-)