Skip to content

Instantly share code, notes, and snippets.

@freerobby
Last active December 10, 2015 23:59
Show Gist options
  • Save freerobby/4513453 to your computer and use it in GitHub Desktop.
Save freerobby/4513453 to your computer and use it in GitHub Desktop.
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