Jay Levitt
2/19/2006 12:53:00 AM
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.
Jay Levitt