Created
June 13, 2016 13:27
-
-
Save marcusshepp/d296b0dda856155cb4a51d1d91727e78 to your computer and use it in GitHub Desktop.
to_sym
This file contains 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
x = "foo" | |
# => :foo | |
x == :foo | |
# => true | |
x = @foo | |
# => @foo | |
x.to_sym | |
# => :@foo | |
x == :@foo | |
# => true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment