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
abiquo-etk-0.4.13 vendor/activesupport-2.3.8/lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.10 lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.9 lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.9.pre lib/active_support/core_ext/object/metaclass.rb
radiant-0.9.1 vendor/rails/activesupport/lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.8 lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.8.pre1 lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.7 lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.6 lib/active_support/core_ext/object/metaclass.rb
activesupport-2.3.6.pre lib/active_support/core_ext/object/metaclass.rb