-
-
Save kotp/1324181 to your computer and use it in GitHub Desktop.
Collection of code for The Book Of Ruby Review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts( not(1 == 1) ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts (not(1 == 1) ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> puts not(1 == 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> puts (not(1 == 1)) | |
false | |
=> nil | |
>> puts( not(1 == 1)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SyntaxError: compile error | |
(irb):1: syntax error, unexpected kNOT, expecting $end | |
puts not(1 == 1) | |
^ | |
from (irb):1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SyntaxError: compile error | |
(irb):3: syntax error, unexpected kNOT, expecting ')' | |
puts( not(1 == 1)) | |
^ | |
(irb):3: syntax error, unexpected ')', expecting $end | |
from (irb):3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> RUBY_VERSION | |
=> "1.8.6" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment