Mark Volkmann wrote:
> On 3/6/06, Jim Weirich <jim / weirichhouse.org> wrote:
>> >> require yourself.
>>
>>
>>    require 'foo'
> 
> The problem I have with this is that maybe all I know is that I want
> to use the foobar gem in my code. How am I supposed to know that the
> main file I should require is foo.rb?  Maybe the main file of each gem
> should always have the same name as the gem.

I suggest specifying standard practices when creating plugins.  Naming 
the main include the same as the gem name is one possiblity.  Or naming 
the main include "GEMNAME/init.rb".  Just pick a standard and make it 
the standard for defining plugins.

--
-- Jim Weirich


-- 
Posted via http://www.ruby-forum.com/.