Project

General

Profile

Actions

Bug #16127

closed

Delegates to BasicObject do not work

Added by jeremyevans0 (Jeremy Evans) over 4 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-08-25) [x86_64-openbsd6.5]
[ruby-core:94541]

Description

The delegate library does not currently handle BasicObject targets, since it assumes the target responds to respond_to?. The attached patch works around the issue by binding the Kernel respond_to? instance method to the target and then calling that.


Files

delegate-basicobject.patch (2.29 KB) delegate-basicobject.patch jeremyevans0 (Jeremy Evans), 08/25/2019 07:08 AM
delegate-basicobject-16127-v2.patch (2.53 KB) delegate-basicobject-16127-v2.patch jeremyevans0 (Jeremy Evans), 09/02/2019 05:11 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0