lib/spank/interceptor_chain.rb in spank-0.0.1369197619 vs lib/spank/interceptor_chain.rb in spank-0.0.1385937112

- old
+ new

@@ -1,5 +1,6 @@ +module Spank class InterceptorChain def initialize(interceptors = []) @interceptors = interceptors end @@ -8,6 +9,13 @@ end def each(&block) @interceptors.each(&block) end + + def intercept(invocation) + each do |interceptor| + interceptor.intercept(invocation) + end + end end +end