Class: Object

Inherits:
BasicObject
Defined in:
lib/ext/ext.rb

Instance Method Summary collapse

Instance Method Details

#meta_def(name, &blk) ⇒ Object



2
3
4
5
6
# File 'lib/ext/ext.rb', line 2

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