Sha256: e0de78ee978cbb7c2e41617489edd834610b3940c402a17490d917700f87917c
Contents?: true
Size: 291 Bytes
Versions: 59
Compression:
Stored size: 291 Bytes
Contents
class Object # Get object's meta (ghost, eigenclass, singleton) class def metaclass class << self self end end # If class_eval is called on an object, add those methods to its metaclass def class_eval(*args, &block) metaclass.class_eval(*args, &block) end end
Version data entries
59 entries across 56 versions & 18 rubygems