From: ko1@... Date: 2015-05-21T03:04:04+00:00 Subject: [ruby-core:69276] [Ruby trunk - Bug #10432] wrong receiver of Binding from Method Issue #10432 has been updated by Koichi Sasada. > Method������������������������to_proc.binding���������������Binding���receiver������Method���������������������������������������������������������������������Method������������������������������������������ ��������������������������������������������������������������� 1.8 ���������Method ������������������������������������������ ---------------------------------------- Bug #10432: wrong receiver of Binding from Method https://bugs.ruby-lang.org/issues/10432#change-52532 * Author: Nobuyoshi Nakada * Status: Closed * Priority: Normal * Assignee: Nobuyoshi Nakada * ruby -v: trunk * Backport: 2.0.0: DONE, 2.1: DONE ---------------------------------------- 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/