Sha256: d14cc9cefd7d4c5ade7135b08080741f802ed2bab7ae9b2b86aeb2817c208539
Contents?: true
Size: 194 Bytes
Versions: 7
Compression:
Stored size: 194 Bytes
Contents
require 'after_do' class Dog def bark puts 'Woooof' end end Dog.extend AfterDo Dog.after :bark do puts 'I just heard a dog bark!' end dog = Dog.new dog2 = Dog.new dog.bark dog2.bark
Version data entries
7 entries across 7 versions & 1 rubygems