From: ajay paswan Date: 2012-10-02T02:24:46+09:00 Subject: Re: cannot reverse string using drb :( "Jesús Gabriel y Galán" wrote in post #1078201: > On Mon, Oct 1, 2012 at 6:34 PM, ajay paswan > wrote: >> # start up the DRb service >> object[0].each do |aa| >> >> puts "all string reversed" >> >> -- >> Posted via http://www.ruby-forum.com/. >> > > If you check the DRB docs here > (http://ruby-doc.org/stdlib-1.9.2/libdoc/drb/rdoc/index.html), you > will see: where is it written, sorry to be stupid, but may be am asking these questions as I am not comfortable or cannot read doc's any help please..? > > > > 1.9.2p290 :041 > remote_array.map! do |el| > 1.9.2p290 :042 > if Array === el > 1.9.2p290 :043?> el.map{|s| s.reverse} > 1.9.2p290 :044?> else Its great to have so explained answer, but really I am unable to get the meaniing of codes, and what if I deal with a class's object? > 1.9.2p290 :045 > el > 1.9.2p290 :046?> end > 1.9.2p290 :047?> end > => [["tsrif", "dnoces", "driht", "htruof"], false] > 1.9.2p290 :048 > remote_array[1] = true > => true > > Which as you see is a bit weird, but this is because the structure you > chose. I know this is just an example, but it shows that you should > model your server objects in such a way to make easy for the clients > to do the stuff. Sorry, but can I get an example Sir? > > Jesus. -- Posted via http://www.ruby-forum.com/.