Sha256: e0c3b89f3c87084f2c3bc60f5f1595c728bcd67bcade81155cd3f4a817bf2946

Contents?: true

Size: 170 Bytes

Versions: 7

Compression:

Stored size: 170 Bytes

Contents

require 'after_do'

class A
  def a
    # ...
  end
end

class B < A
end

A.extend AfterDo
A.after :a do puts 'a was called' end

b = B.new
b.a #prints out: a was called

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
after_do-0.4.0 samples/inheritance.rb
after_do-0.3.1 samples/inheritance.rb
after_do-0.3.0 samples/inheritance.rb
after_do-0.2.3 samples/inheritance.rb
after_do-0.2.2 samples/inheritance.rb
after_do-0.2.1 samples/inheritance.rb
after_do-0.2.0 samples/inheritance.rb