examples/around_example.rb in aspect4r-0.9.0 vs examples/around_example.rb in aspect4r-0.9.1
- old
+ new
@@ -8,12 +8,12 @@
def test value
puts 'test'
value
end
- around :test do |proxy, value|
+ around :test do |value, &block|
puts 'before test'
- result = a4r_invoke proxy, value
+ result = block.call value
puts 'after test'
result
end
end