Sha256: db7343d095489859d2206d0184add56de83a4b2fb725764116a5a055d970d44a

Contents?: true

Size: 273 Bytes

Versions: 110

Compression:

Stored size: 273 Bytes

Contents

require 'active_support/deprecation'

class Object
  # Get object's meta (ghost, eigenclass, singleton) class.
  #
  # Deprecated in favor of Object#singleton_class.
  def metaclass
    class << self
      self
    end
  end

  deprecate :metaclass => :singleton_class
end

Version data entries

110 entries across 80 versions & 7 rubygems

Version Path
depengine-0.0.11 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.11 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.10 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.10 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.18 lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.9 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.9 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.8 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.8 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.7 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.7 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.5 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.5 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.4 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.4 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.3 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.3 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.2 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.2 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.17 lib/active_support/core_ext/object/metaclass.rb