Is there any possibility to return multiple values from method? Something like this:
def someMethod() return [\"a\", 10, SomeObject.new] end [a, b, c] =
You can achieve this returning an array too, like
def sumdiff(x, y) [x+y, x-y] end
which seems functionally equivalent to
def sumdiff(x, y) return x+y, x-y end