Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a === b -> a.is_a?(b) mutation #1188

Merged
merged 1 commit into from
Jan 2, 2021
Merged

Add a === b -> a.is_a?(b) mutation #1188

merged 1 commit into from
Jan 2, 2021

Conversation

dgollahon
Copy link
Collaborator

@dgollahon dgollahon commented Jan 2, 2021

@@ -17,6 +17,7 @@ class Send < self
:< => %i[== eql? equal?],
:<= => %i[< == eql? equal?],
:== => %i[eql? equal?],
:=== => %i[is_a?],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbj I wonder if this should also have a mutation to #eql??

mbj
mbj previously approved these changes Jan 2, 2021
- Closes #689
  * NOTE: I have gone with `is_a?` over `kind_of?` because [this is more commonly used](https://github.com/rubocop-hq/ruby-style-guide#is-a-vs-kind-of)
@dgollahon dgollahon merged commit 8cbdb8a into master Jan 2, 2021
@dgollahon dgollahon deleted the add-is_a-mutation branch January 2, 2021 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mutation from foo === barbar.kind_of?(foo)
2 participants