Class namespace

I am trying to organize some of my classes in to namespaces using
something like this:

module FileSystem
class Explorer
include Reloadable
end
end

Everything is fine until a decide to “reload!” on the console. I am
getting the following error:

NameError: uninitialized constant Explorer
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/depe
ndencies.rb:123:in `const_missing’

Therefore I have to ‘exit’ and launch the Console again whenver I
change something in my code.
Is there a way to prevent this?

Thanks in advance,

Daniel

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs