On Tuesday 02 June 2009, Markus F. wrote:
|> I hope this helps
|I don’t think so, as it does not make the current scope aware of
|modules/namespace. Without prefix, I just can’t access FinallyMyClass
|like I would do it in java(-ish).
|Probably nothing which belongs into ruby/dynamically typed language.
Sorry, I think I misunderstood your question. I thought you only wanted
a single class without prefix, but reading again your first mail, it
that you want everything under MyModule::HasSubmodile::AndAnotherOne to
like it was in the main object (or in the module you’re working in). Is
correct? If so, you can try including the
MyModule::HasSubmodile::AndAnotherOne module inside your own, or in the
toplevel object, like this:
This will give you access to constants and instance methods defined in
AndAnotherOne (but not to its class methods or to constants defined in
MyModule or HasSubmodule). I’m not completely sure this is exactly what
want, but it’s the best thing I can think of (I don’t know java, so I
know what exactly you expect to be able to do with this).