Hi.

I have this module:

module Foo
  def test
    puts 'Hi from test() from module Foo.'
  end
end

I put it into file 'foo.rb'

I require this file.

Now, in order to make use of test() method, I would do:

include Foo
test

This works. Is there a way to automatically do "include Foo" upon
require?

I would like to have this as I could eliminate a lot of lines of include
code.

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