I'm having problems including a module in a class with names. In the example below, an uninitialized constant Bar::Foo::Baz (NameError) . What is the bulk of Ruby knowledge I don't see here?
module Foo module Baz def hello puts 'hello' end end end module Bar class Foo include Foo::Baz end end foo = Bar::Foo.new
ruby
Hakan ensari
source share