From: Jim Weirich Date: 2005-01-30T07:01:49+09:00 Subject: Re: gem question On Saturday 29 January 2005 04:40 pm, itsme213 wrote: > If I want just the 'kernel' part of the 'extensions' library I normally do: > require 'extensions/kernel' > > If I use gems with: > require 'rubygems' > what is the equivalent? > require_gem 'extensions/kernel' #=> error: could not find rubygem > require_gem 'extensions' # works, but loads more than I want?? Does the following do what you want? require 'rubygems' require 'extensions/kernel' If that brings in "too much", then it is probably because the gem author for the that gem specified an "autorequire" that is bringing in the extra stuff. If that is the issue, I would report it as a problem to the gem author. -- -- 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)