On 10/21/05, Glenn M. Lewis <noSpam / nospam.com> 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