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
Bira-sweat_shop-1.0.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.3.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.5.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.6.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.7.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.8.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.8.1 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-0.8.2 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-1.0.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-1.1.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-1.2.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-1.3.0 lib/sweat_shop/metaid.rb
famoseagle-sweat_shop-1.3.1 lib/sweat_shop/metaid.rb
netinlet-sweat_shop-1.1.0 lib/sweat_shop/metaid.rb
netinlet-sweat_shop-1.1.1 lib/sweat_shop/metaid.rb
sweatshop-1.5.2 lib/sweatshop/metaid.rb
sa-sweat_shop-1.4.3 lib/sweat_shop/metaid.rb
sweatshop-1.5.1 lib/sweatshop/metaid.rb
sweatshop-1.5.0 lib/sweatshop/metaid.rb
sweatshop-1.4.0 lib/sweat_shop/metaid.rb