From: Jim Weirich Date: 2004-10-10T08:43:11+09:00 Subject: Re: dev-utils gem... How do I require_gem 'dev-utils/debug' ? Eirikur Hallgrimsson wrote: > I love the escape to irb idea and I have need of it. I'm new to gems, > and I have installed the dev-utils gem. > > The dev-utils documentation shows a plain non-gem require, which > simply fails because the gem-installed version isn't in the path. > > require_gem of 'dev-utils' works but does not supply the breakpoint > method, so I'm assuming that the debug functionality is not loaded. > > require_gem of 'dev-utils/debug' fails. > > gem list --local shows dev-utils, but not the subcomponents such as > debug. Try this: require 'rubygems' # Might not need this if already required require_gem 'dev-utils' # This makes the gem available # It also requires 'dev-utils' # as a convenience require 'dev-utils/debug' # Normal require now works # because the gem is available -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)