Module: Kernel

Defined in:
lib/dm-core/core_ext/kernel.rb

Instance Method Summary collapse

Instance Method Details

#singleton_classClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the object’s singleton class.

Returns:

  • (Class)


8
9
10
11
12
# File 'lib/dm-core/core_ext/kernel.rb', line 8

def singleton_class
  class << self
    self
  end
end