Created
July 20, 2018 02:04
-
-
Save pocke/fdf9c6af05b364f72fdc77b6be89ce9b to your computer and use it in GitHub Desktop.
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-2.5.1 test.rb | |
"local-variable" | |
"local-variable" |
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
B = 1 | |
b = 1 | |
p defined?(B) | |
p defined?(b) |
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-trunk test.rb | |
"constant" | |
"local-variable" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment