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.21 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.21 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.20 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.20 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.19 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.19 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.18 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.18 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.17 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.17 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.16 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.16 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.15 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.15 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.14 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.14 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.13 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.13 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.12 etc/isolate/jruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
depengine-0.0.12 etc/isolate/ruby-1.8/gems/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb