Class: Object

Inherits:
BasicObject
Defined in:
lib/ohm-zset.rb

Overview

Instance Method Summary collapse

Instance Method Details

#meta_def(name, &blk) ⇒ Object



8
9
10
# File 'lib/ohm-zset.rb', line 8

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