From: Intransition Date: 2011-11-15T04:20:47+09:00 Subject: Binding#self ------=_Part_1343_9724912.1321298440629 Content-Type: multipart/alternative; boundary="----=_Part_1344_2968555.1321298440629" ------=_Part_1344_2968555.1321298440629 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Need suggestions for a core-extension method name. Currently Ruby Facets defines: class Binding def self eval('self') end end Which has worked fine, but testing with Rubinus, it presents a problem. Firstly, I learned I had to do: def self Kernel.eval('Rubinius::VariableScope.current.self', self) end But it blows sky high as soon as it is defined. Changing the method name fixes it. Any suggestions for a good name? ------=_Part_1344_2968555.1321298440629 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Hi,

Need suggestions for a core-extension method name. Currently Ruby Facets defines:

  class Binding
    def self
      eval('self')
    end
  end

Which has worked fine, but testing with Rubinus, it presents a problem. Firstly, I learned I had to do:

    def self
      Kernel.eval('Rubinius::VariableScope.current.self', self)
    end

But it blows sky high as soon as it is defined. Changing the method name fixes it.

Any suggestions for a good name?



------=_Part_1344_2968555.1321298440629-- ------=_Part_1343_9724912.1321298440629--