Sha256: 0c6a5905f9c18c9569ee1c68aa90a6f91a70cb608d6dab2131a5816e82c08cc3

Contents?: true

Size: 220 Bytes

Versions: 4

Compression:

Stored size: 220 Bytes

Contents

module Kernel

  # Easy access to an object's "special" class.
  #
  # NOTE: This is already defined in Ruby 1.9+.
  def singleton_class
    (class << self; self; end)
  end unless method_defined?(:singleton_class)

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 lib/core/facets/kernel/singleton_class.rb
facets-3.1.0 lib/core/facets/kernel/singleton_class.rb
facets-3.0.0 lib/core/facets/kernel/singleton_class.rb
facets-2.9.3 lib/core/facets/kernel/singleton_class.rb