From: usa@... Date: 2014-11-28T07:22:08+00:00 Subject: [ruby-core:66541] [ruby-trunk - Bug #10432] wrong receiver of Binding from Method Issue #10432 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED Backported into `ruby_2_0_0` at r48633. (���������������������������������������2.0.0������Binding#receiver������������������������������������������) ---------------------------------------- Bug #10432: wrong receiver of Binding from Method https://bugs.ruby-lang.org/issues/10432#change-50156 * Author: Nobuyoshi Nakada * Status: Closed * Priority: Normal * Assignee: Nobuyoshi Nakada * Category: core * Target version: current: 2.2.0 * ruby -v: trunk * Backport: 2.0.0: DONE, 2.1: REQUIRED ---------------------------------------- Method������������������������`to_proc.binding`���������������Binding���receiver������Method���������������������������������������������������������������������Method������������������������������������������ ~~~ruby class C def foo;end end o = C.new m = o.method(:foo) p m.receiver # # p m.to_proc.binding.receiver # # ~~~ 2.0, 2.1������`Binding#receiver`������������������������`eval("self")`������������������������������������ -- https://bugs.ruby-lang.org/