Class: Object

Inherits:
BasicObject
Defined in:
lib/flat_hash/directory.rb

Instance Method Summary collapse

Instance Method Details

#meta_eval(&block) ⇒ Object



10
11
12
# File 'lib/flat_hash/directory.rb', line 10

def meta_eval &block
  metaclass.instance_eval &block
end

#metaclassObject



6
7
8
# File 'lib/flat_hash/directory.rb', line 6

def metaclass
  (class << self; self; end)
end