Sha256: 2be6c27e9b1ed9be56fc317d3a40b6d7919ec52f5506546ef2343e630adbff9f

Contents?: true

Size: 198 Bytes

Versions: 71

Compression:

Stored size: 198 Bytes

Contents

# encoding: UTF-8
module Kernel
  # Returns the object's singleton class.
  def singleton_class
    class << self
      self
    end
  end unless respond_to?(:singleton_class) # exists in 1.9.2
end

Version data entries

71 entries across 71 versions & 9 rubygems

Version Path
mongo_mapper-unstable-2010.07.02 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.07.01 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.06.30 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.06.29 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.06.28 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.06.25 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.06.24 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.06.23 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.8.2 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.8.1 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.8.0 lib/mongo_mapper/extensions/kernel.rb