Sha256: d054ae16e990df4f34a6bcd358e24d29693bf05daa888663c2ffb873bcb223b7
Contents?: true
Size: 205 Bytes
Versions: 23
Compression:
Stored size: 205 Bytes
Contents
module Kernel def singleton_method(name) m = method(name) if m.owner != singleton_class raise NameError, "undefined method `#{name}' for class `#{singleton_class}'" end m end end
Version data entries
23 entries across 23 versions & 2 rubygems