Markus Fischer wrote:
> Interesting example. Is there another way to "access" or "make use" of
> "yo" besides including the module in a class? Or putting it another way:
> can I call yo directly when being defined that way?

Try "module_function".

module Test
  def yo
    puts 'yo'
  end
  module_function :yo
end

Test.yo

module Test
  public :yo
end

a = Object.new
a.extend Test
a.yo

class Foo
  include Test
end

Foo.new.yo
-- 
Posted via http://www.ruby-forum.com/.