dry-rb / dry-matcher

Flexible, expressive pattern matching for Ruby

Home Page:https://dry-rb.org/gems/dry-matcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genericize EitherMatcher

nicosuave opened this issue · comments

Since both Either and Try implement success?, I suggest modifying Dry::Matcher::EitherMatcher to call success? & failure? rather than right? & left?.

I will submit a PR if this is desired

@nicosuave I'd love to see this, please go ahead with the PR!

This has been done now.