From: James Edward Gray II Date: 2005-05-20T22:16:31+09:00 Subject: Re: Multiple return and parallel assignement On May 20, 2005, at 8:05 AM, jean wrote: > What do you think about? (Perhaps I don't know enough Ruby and > there is > a way to do the same thing in Ruby ;-) ) > > Thinking at Ruby I'd like that if I call mymethod defined above with > only a variable it gets the first value: Probably not what you want, but: irb(main):001:0> def mymethod irb(main):002:1> return 1, 2 irb(main):003:1> end => nil irb(main):004:0> one = mymethod.first => 1 Hope that helps. James Edward Gray II