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-0.12.0 lib/mongo_mapper/extensions/kernel.rb
lookout-mongo_mapper-0.11.3 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.11.2 lib/mongo_mapper/extensions/kernel.rb
jamieorc-mongo_mapper-0.11.1.1 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.11.1 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.11.0 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.10.1 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.10.0 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.9.2 lib/mongo_mapper/extensions/kernel.rb
jonbell-mongo_mapper-0.8.6 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.9.1 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.9.0 lib/mongo_mapper/extensions/kernel.rb
ign-mongo_mapper-0.8.6.2 lib/mongo_mapper/extensions/kernel.rb
ign-mongo_mapper-0.8.6.1 lib/mongo_mapper/extensions/kernel.rb
ssherman-mongo_mapper-0.8.6 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.8.6 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.8.5 lib/mongo_mapper/extensions/kernel.rb
honkster-mongo_mapper-0.8.4 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-0.8.4 lib/mongo_mapper/extensions/kernel.rb
mongo_mapper-unstable-2010.08.19 lib/mongo_mapper/extensions/kernel.rb