Last active
December 10, 2015 23:59
-
-
Save freerobby/4513453 to your computer and use it in GitHub Desktop.
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
jruby-1.7.1 :001 > User == "User".constantize | |
=> true | |
jruby-1.7.1 :002 > defined?(User) | |
=> "constant" | |
jruby-1.7.1 :003 > defined?("User".constantize) | |
=> "method" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment