Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/method_profiler/core_ext/object.rb
Overview
Backports Object#singleton_class from Ruby 1.9.2
Instance Method Summary collapse
-
#singleton_class ⇒ Object
Returns the singleton class of an object.
Instance Method Details
#singleton_class ⇒ Object
Returns the singleton class of an object.
6 7 8 |
# File 'lib/method_profiler/core_ext/object.rb', line 6 def singleton_class class << self; self end end |