Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. # ITEM 12: UNDERSTAND THE DIFFERENT FLAVORS OF EQUALITY
  2. ```ruby
  3. equal? # compares by object id, it is not to be overrided.
  4. == # used to represent same value eg. 1 == 1.0
  5. eql? #
  6. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement