Sha256: ab2d985eed689e8169f1cb57534689234ff41ea93da825ff16ba43b39ee3e418
Contents?: true
Size: 191 Bytes
Versions: 5
Compression:
Stored size: 191 Bytes
Contents
class Object # http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html def meta_def name, &blk (class << self; self; end).instance_eval { define_method name, &blk } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
troles-0.6.1 | lib/troles/meta.rb |
troles-0.6.0 | lib/troles/meta.rb |
troles-0.5.2 | lib/troles/meta.rb |
troles-0.5.1 | lib/troles/meta.rb |
troles-0.5.0 | lib/troles/meta.rb |