Module: Kernel

Defined in:
lib/reflexive/application.rb,
lib/reflexive/core_ext/kernel/singleton_class.rb

Instance Method Summary collapse

Instance Method Details

#r(*args) ⇒ Object



24
25
26
# File 'lib/reflexive/application.rb', line 24

def r(*args)
  raise((args.size == 1 ? args[0] : args).inspect)
end

#singleton_classObject

Returns the object’s singleton class.



3
4
5
6
7
# File 'lib/reflexive/core_ext/kernel/singleton_class.rb', line 3

def singleton_class
  class << self
    self
  end
end