-
if succinctly · Jun 7, 2006
In Ruby,
if
is an expression, not a statement, thus it returns a value. This may not seem useful at first glance, but it lends itself to forming neat, concise codeā¦ Like most things in Ruby, actually.
In Ruby, if
is an expression, not a statement, thus it returns a value. This may not seem useful at first glance, but it lends itself to forming neat, concise codeā¦ Like most things in Ruby, actually.