Sha256: 249fd7b1e1ffe45e0f42e8bf3c40e676a1240a978fec8b6cd4788433ce85dbac
Contents?: true
Size: 191 Bytes
Versions: 1
Compression:
Stored size: 191 Bytes
Contents
require 'after_do' module M def self.magic puts 'magic' end end M.singleton_class.extend AfterDo M.singleton_class.after :magic do puts 'after_do is pure magic' end M.magic M.magic
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
after_do-0.3.1 | samples/singleton.rb |