No if you see in a generic and/or logic point of view, in the two cases it does the same thing... But in truth the first is more effective and organizated, and takes only one line. And since Ruby is like an interpreter i think the first will take less time to be processed. Three lines takes three times more time to be read ya know? ^^