Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ITEM 12: UNDERSTAND THE DIFFERENT FLAVORS OF EQUALITY
- ```ruby
- equal? # compares by object id, it is not to be overrided.
- == # used to represent same value eg. 1 == 1.0
- eql? #
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement