Sha256: 6a2ee4bb0fe1ce860664d6d7d9ed9dc966e8729eb33cc16ec2573492dafaabda
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
class A def test puts 'test' end end ############################## $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'aspector' class ImplicitMethodOptionTest < Aspector::Base # Apply advice to options[:method] and options[:methods] if no target method is given # before options[:method], options[:methods] do before do puts 'before' end end # ImplicitMethodOptionTest.apply A, :method => 'test' ImplicitMethodOptionTest.apply "A#test" ############################## A.new.test # Expected output: # before # test
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aspector-0.11.1 | examples/implicit_method_option_test.rb |
aspector-0.11.0 | examples/implicit_method_option_test.rb |
aspector-0.10.1 | examples/implicit_method_option_test.rb |