Frederick Cheung wrote: > On May 25, 9:28�pm, Dan Sadaka <rails-mailing-l...@andreas-s.net> > wrote: >> > Well p (or puts etc) end up calling to_s on objects, and you're > obviously getting Object's default to_s. Does rjb have some method to > convert java strings into ruby strings ? > > Fred
Fred, Good question. I did some research and found enough to try using itr.next().to_string and guess what. It worked! I had tried ruby's .to_s and naively thought that rjb was translating it to the java equivalent because I wasn't getting an error. Thanks-a-bunch for the guidance, Dan -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---