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

Mutate dynamic send to static send #1040

Closed
wants to merge 1 commit into from
Closed

Mutate dynamic send to static send #1040

wants to merge 1 commit into from

Conversation

dgollahon
Copy link
Collaborator

@dgollahon dgollahon commented Aug 26, 2020

Mutates:

  • foo.__send__(:bar) -> foo.bar
  • foo.send(:bar) -> foo.bar
  • foo.public_send(:bar) -> foo.bar

...and so on, including arguments.

Closes #732

end

Mutant::Meta::Example.add :send do # rubocop:disable Metrics/BlockLength
source 'foo.public_send(:bar, 1, two: true, **kwargs, &block)'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can simplify this if preferred, but I wanted to make sure I didn't somehow mangle a complex send case when i was hacking on this locally.

Mutates:
- foo.__send__(:bar) -> foo.bar
- foo.send(:bar) -> foo.bar
- foo.public_send(:bar) -> foo.bar

...and so on, including arguments.

Closes #732
@dgollahon
Copy link
Collaborator Author

Closing in favor of #1044 (resolves CI issues).

@dgollahon dgollahon closed this Aug 26, 2020
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 send(:foo) -> foo. (with arguments)
1 participant