Skip to content

Instantly share code, notes, and snippets.

@kotp
Created October 29, 2011 06:51
Show Gist options
  • Save kotp/1324181 to your computer and use it in GitHub Desktop.
Save kotp/1324181 to your computer and use it in GitHub Desktop.
Collection of code for The Book Of Ruby Review
puts( not(1 == 1) )
puts (not(1 == 1) )
>> puts not(1 == 1)
>> puts (not(1 == 1))
false
=> nil
>> puts( not(1 == 1))
SyntaxError: compile error
(irb):1: syntax error, unexpected kNOT, expecting $end
puts not(1 == 1)
^
from (irb):1
SyntaxError: compile error
(irb):3: syntax error, unexpected kNOT, expecting ')'
puts( not(1 == 1))
^
(irb):3: syntax error, unexpected ')', expecting $end
from (irb):3
>> RUBY_VERSION
=> "1.8.6"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment