Sha256: c879db917b4e4bc146396020798c6f15f3712592d7124b147e491189e6514d96
Contents?: true
Size: 171 Bytes
Versions: 21
Compression:
Stored size: 171 Bytes
Contents
def metaclass; class << self; self; end; end def meta_eval(&blk); metaclass.instance_eval(&blk); end def meta_def(name, &blk) meta_eval { define_method name, &blk } end
Version data entries
21 entries across 21 versions & 6 rubygems
Version | Path |
---|---|
sweat_shop-1.4.0 | lib/sweat_shop/metaid.rb |