Sha256: 7dddbd3e4e64f5df00f80f66e2419a229fed266fd1594d11b2aeec5f572e7b05
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
module Spank class InterceptorRegistration def initialize(method_symbol) @method = method_symbol end def with(interceptor) @interceptor = interceptor end def intercept(instance) proxy= Proxy.new(instance) proxy.add_interceptor(@method, @interceptor) proxy end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spank-0.0.2 | lib/spank/interceptor_registration.rb |
spank-0.0.1 | lib/spank/interceptor_registration.rb |