aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/metaclass.rb
blob: 169a76dfb72e4060b38e07cc6573749ec5d4427e (plain) (blame)
1
2
3
4
5
6
7
8
class Object
  # Get object's meta (ghost, eigenclass, singleton) class
  def metaclass
    class << self
      self
    end
  end
end