Module: Kernel
- Defined in:
- lib/unextendable/kernel.rb
Instance Method Summary collapse
- #meta_class(&block) ⇒ Object (also: #singleton_class)
Instance Method Details
#meta_class(&block) ⇒ Object Also known as: singleton_class
3 4 5 6 7 8 |
# File 'lib/unextendable/kernel.rb', line 3
def meta_class(&block)
class << self
yield if block_given?
self
end
end
|