From: Intransition Date: 2010-06-11T04:57:32+09:00 Subject: Re: Why private #binding? On Jun 10, 1:01 pm, Yukihiro Matsumoto wrote: > Hi, > > In message "Re: Why private #binding?" >     on Thu, 10 Jun 2010 22:29:32 +0900, Rick DeNatale writes: > > |I can think of two potential reasons. > | > |1. Because binding exposes the internals of the receiver. > | > |2. because if it were public then in a case like: > | > | > |class A > |    def self.binding_of(b) > |        b.binding > |    end > |end > | > |A.binding_of("abc") > | > |might well return a binding with self == A, rather than the string, > |because binding returns the bindings "at the point of call" > > The latter one was the biggest reason for me. It doesn't recognize it's receiver?