Skip to content

Instantly share code, notes, and snippets.

@lonelyelk
Created November 3, 2009 20:08
Show Gist options
  • Save lonelyelk/225378 to your computer and use it in GitHub Desktop.
Save lonelyelk/225378 to your computer and use it in GitHub Desktop.
s = "abc"
s.class == String # => true
s.class === String # => false
String === s.class # => false
s === String # => false
String === s # => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment