Can it be done?

E.g.

  o = BasicObject.new
  o.extend Enumerable

(Don't take this specific example for what I am trying to do. It's
just an easy example off the top of my head.)