Project

General

Profile

Actions

Bug #9560

closed

Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0

Added by PragTob (Tobias Pfeiffer) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:61053]

Description

There was an issue when you have an object with an open method wrapped by a SimpleDelegator and then use "send :open". This gist illustrates it: https://gist.github.com/PragTob/9189371

There was a github pull request fixing it: https://github.com/ruby/ruby/pull/449

It works for me on 2.1 (and 2.1.1) but it seems not to have been backported to the 2.0 series (tried -p451 today).

It'd be great if it were backported, could save people other than me quite some time and nerves :) It's a nasty thing to track down.

Cheers + thanks,
Tobi

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0