hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Wednesday

2005.06.29

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

by why in cult

The Least Surprised #5: The Metadependant, Part Two

Derby: DRb Over YAML #

by why in bits

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.