Module: Kernel

Defined in:
lib/gorillib/metaprogramming/singleton_class.rb

Instance Method Summary collapse

Instance Method Details

#singleton_classObject

Returns the object's singleton class.



3
4
5
6
7
# File 'lib/gorillib/metaprogramming/singleton_class.rb', line 3

def singleton_class
  class << self
    self
  end
end