Please sign in to comment.
Patch `Delegator` to work with `#try`
`Delegator` inherits from `BasicObject`, which means that it will not have `Object#try` defined. It will then delegate the call to the underlying object, which will not (necessarily) respond to the method defined in the enclosing `Delegator`. This patches `Delegator` with the `#try` method to work around the surprising behaviour. Fixes #5790
- Loading branch information...
Showing with 127 additions and 17 deletions.