Class: Object

Inherits:
BasicObject
Defined in:
lib/troles/meta.rb

Overview

Instance Method Summary collapse

Instance Method Details

#meta_def(name, &blk) ⇒ Object



2
3
4
# File 'lib/troles/meta.rb', line 2

def meta_def name, &blk
  (class << self; self; end).instance_eval { define_method name, &blk }
end