lib/spank/proxy.rb in spank-0.0.1369197619 vs lib/spank/proxy.rb in spank-0.0.1385937112
- old
+ new
@@ -27,12 +27,10 @@
def create_module_for(method)
Module.new do
define_method(method.to_sym) do |*args, &block|
invocation = create_invocation_for(method, args, block)
- @interceptor_chain.each do |interceptor|
- interceptor.intercept(invocation)
- end
+ @interceptor_chain.intercept(invocation)
invocation.result
end
end
end
end