Module: Kernel

Defined in:
lib/lemon/core_ext/kernel.rb

Instance Method Summary collapse

Instance Method Details

#qua_class(&block) ⇒ Object Also known as: quaclass



5
6
7
8
9
10
11
# File 'lib/lemon/core_ext/kernel.rb', line 5

def qua_class(&block)
  if block_given?
    (class << self; self; end).class_eval(&block)
  else
    (class << self; self; end)
  end
end