The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Derby: DRb Over YAML

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Red Handed

Posts: 1158
Nickname: redhanded
Registered: Dec, 2004

Red Handed is a Ruby-focused group blog.
Derby: DRb Over YAML Posted: Jun 29, 2005 1:55 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Red Handed.
Original Post: Derby: DRb Over YAML
Feed Title: RedHanded
Feed URL: http://redhanded.hobix.com/index.xml
Feed Description: sneaking Ruby through the system
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Red Handed
Latest Posts From RedHanded

Advertisement

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.

Read: Derby: DRb Over YAML

Topic: TextDrive seeks to sweeten control with Rails application Previous Topic   Next Topic Topic: Fanbois

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use