-
if succinctly · Jun 7, 2006
In Ruby,
ifis 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.