Class: Object

Inherits:
BasicObject
Defined in:
lib/wordnik.rb

Overview

Instance Method Summary collapse

Instance Method Details

#meta_def(name, &blk) ⇒ Object



14
15
16
# File 'lib/wordnik.rb', line 14

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