samples/dog.rb in after_do-0.1.0 vs samples/dog.rb in after_do-0.2.0

- old
+ new

@@ -1,21 +1,16 @@ -require File.expand_path('../../lib/after_do', __FILE__) +require 'after_do' class Dog def bark puts 'Woooof' end - - def eat - puts 'yummie!' - 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 -dog.eat -dog2.bark \ No newline at end of file +dog2.bark