From: Ryan Leavengood Date: 2005-10-22T04:15:05+09:00 Subject: Re: Module question - should be simple, but can't figure it out... On 10/21/05, Glenn M. Lewis wrote: > > QUESTION: How can I create module 'Dummy' so that it can be called > either with the syntax in 'testdummy.rb' or 'testdummy2.rb' without > modification? module Dummy def try_me puts "yo" end extend self end include Dummy try_me Dummy::try_me __END__ You just add "extend self", as above. Also it isn't a good idea to name methods in CamelCase, as that is normally used for constants like classes, etc. Which is why I used try_me for the method name. Ryan