singleton_class()
Returns the object’s singleton class.
# File activesupport/lib/active_support/core_ext/kernel/singleton_class.rb, line 3 def singleton_class class << self self end end