I'd like to point out that while Ruby does support the
puts("This was true.") if true
syntax, that isn't how most people write if statements in Ruby, in my experience. Ruby also supports the common if true
puts("This was true.")
end
format, which is how I typically see if statements formatted in Ruby code.I wish the article had made that clear.