Hi folks,

I have a somewhat esoteric Ruby question:

Suppose I have a file myclass.rb which contains the definition for
MyClass:

class MyClass
  ... code ...
end

However, later on, I decide that I really want this class to appear as
FooCorp::BarApp::MyClass, where FooCorp and BarApp are modules.  I'd
prefer not to actually edit myclass.rb (I don't necessarily want this
to be a permanent change, and maybe it's even someone else's owned
code that I don't want to mess with); what I'd really like to do
instead is just dynamically import the contents of myclass.rb into the
FooCorp::BarApp namespace context (sort of like a namespace "sandbox").

Ideally, I'd like to be able to write something like:

namespace_load FooCorp::BarApp, "myclass.rb"

But I can't figure out how to write this method.

Can someone provide any advice?  I'm still an only 2 weeks old Ruby
programmer.

--Mirian