Sha256: ba31f6c3451fa03c11e58943a18e099046a1714a63c18603ffe692782994df86
Contents?: true
Size: 388 Bytes
Versions: 13
Compression:
Stored size: 388 Bytes
Contents
module Kernel # Easy access to an object's specialized class, # otherwise known as it's metaclass or singleton class. def own(&blk) (class << self; self; end).module_eval( &blk ) if blk return (class << self; self; end) end end # Maybe a little bonus feature? Shhh... don't tell Matz ;-) #class Module # public :attr, :attr_reader, :attr_writer, :attr_accessor #end
Version data entries
13 entries across 13 versions & 1 rubygems