-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable equivalence and hash equality to Observer (#57)
An observer can be seen as a value object. If all the characteristics of an observer are equal to those of another, they can be considered as the same. This change implements `#==` (and its alias `#eql?`) and `#hash` to implement value object behaviours.
- Loading branch information
1 parent
483cd35
commit c2869ad
Showing
2 changed files
with
111 additions
and
8 deletions.
There are no files selected for viewing
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
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