Sha256: c15afadad1847e6d56e2ca395d1669feccb70417888322a6d7e8fa5f7ef27ef3

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

require 'facets/binding/eval'

class Binding

  # already defined by Rubinius
  #   Kernel.eval('Rubinius::VariableScope.current.self', self)
  unless method_defined?(:self)

    # Returns self of the binding's context.
    def self
      eval('self')
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-2.9.3 lib/core/facets/binding/self.rb