lib/core/facets/binding/self.rb in facets-2.9.2 vs lib/core/facets/binding/self.rb in facets-2.9.3

- old
+ new

@@ -1,12 +1,17 @@ require 'facets/binding/eval' class Binding - # Returns self of the binding context. + # already defined by Rubinius + # Kernel.eval('Rubinius::VariableScope.current.self', self) + unless method_defined?(:self) - def self() - @_self ||= eval("self") + # Returns self of the binding's context. + def self + eval('self') + end + end end