This question directly relates to this one. But I tried to break it down to the base problem and I didn\'t want to enter even more text into the other question box. So here
A simpler version:
module Extensions def bar 'Extended Bar!' end end Foo.singleton_class.prepend Extensions