From: Eric Hodel Date: 2006-02-19T10:13:44+09:00 Subject: Re: Why does drb.rb depend on its filename? On Feb 18, 2006, at 4:53 PM, Jay Levitt wrote: > I was creating my first DRb server, and ran into a trouble with > ACLs. I > wanted to put a debug statement into DRb::Accept, so I copied it to my > directory, renamed it jrb.rb, and required it with the new name. > But when > I did that, I got an error at launch: > > ....jrb.rb:1047: undefined method `to_s' for class `DRb::DRbObject' > (NameError) > > And the same error happened when I left jrb.rb in /usr/local/lib/ > ruby/1.8. > So it's not the path - it's the filename. > > What's going on? It works fine when run as drb.rb. It would be easier to tell you with an example. -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com