From: "Iñaki Baz Castillo" Date: 2008-06-30T01:53:38+09:00 Subject: Re: Why can't I return "Threads.list" Array in DRb? El Domingo, 29 de Junio de 2008, Iñaki Baz Castillo escribió: > - In the DRb server object I just do: > > def current_threads > Thread.list > end > > - And the DRb client calls: > > drb_client.current_threads > > but instead of an Array object I get a DRb::DRbObject, and in each call to > this method I get a different "id": > > irb> drb_client.current_threads > => # @uri="druby://0.0.0.0:10001"> > irb> drb_client.current_threads > => # @uri="druby://0.0.0.0:10001"> Opsss, and more extrange: Note the following: irb> drb_client.current_threads => # irb> puts drb_client.current_threads # # # # # => nil How is it possible? why "puts" gets this? irb> puts drb_client.current_threads.class DRb::DRbObject => nil -- Iñaki Baz Castillo