ruby magic

Ruby magic:

ruby <<-EOR
puts (not(false
1))
EOR

what would above yield?

I’m not sure but i think that newline here acts as statement separator, so last statement’s value gets negated and false yielded. Tricky

Comments