From: botp Date: 2012-05-24T12:05:28+09:00 Subject: looking for a ruby idiom : r=foo; return r if r Hi All, am looking for a ruby idiom on the ff # some code here.... r=foo return r if r # some code here.. tried it w return r if (r=foo) but ruby complains w undefined r so ended up w if r=foo return r end would be nice if modifiers can act like normal if thanks for the read kind regards -botp