Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix matcher chaining to prevent name collisions.
Previously, #chain used #define_method on the class to define an instance method on all instances. We want it to define the method on only this instance, so we need to delegate to the singleton class instead (which the recently added #define_method does for us!).
- Loading branch information
1 parent
32e3f9f
commit 9c2971a
Showing
2 changed files
with
11 additions
and
5 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