The Least Surprised #5: The Metadependant, Part Two #


Here’s Derby:
require 'drb/drb' require 'yaml' module DRb Marshal = ::YAML end
I’m still looking for a way to readdress the Derby module so it’ll work under its own namespace. I mean, imagine this:
module Derby < DRb Marshal = ::YAML end
I can’t seem to get the methods to rest under a new namespace, though, even with this sort of trickery:
module Derby
include DRb
DRb.singleton_methods.each { |m| module_function m }
Marshal = ::YAML
end
Which is because, for instance, Derby::DRbServer still calls itself DRb::DRbServer.