Class: Object

Inherits:
BasicObject
Defined in:
lib/slab/metaclass.rb

Instance Method Summary collapse

Instance Method Details

#meta_eval(&block) ⇒ Object



7
8
9
# File 'lib/slab/metaclass.rb', line 7

def meta_eval(&block)
  metaclass.instance_eval &block
end

#metaclassObject

The hidden singleton lurks behind everyone



3
4
5
# File 'lib/slab/metaclass.rb', line 3

def metaclass
  class << self; self; end
end