Skip to content
☈king edited this page Nov 19, 2012 · 3 revisions

A keyword that is generally needless. For example, these all work:

if 3 then
  puts 'hi'
end
if 3
  puts 'hi'
end

if 3 then 'yes' else 'no' end
if 3; 'yes' else 'no' end
3 ? 'yes' : 'no'

case x
when 3 then puts 'yo' end
when 4; puts 'yo' end
end
Clone this wiki locally