Class Needle::InterceptorChainBuilder::ProxyObjectChainElement
In: lib/needle/interceptor-chain.rb
Parent: Object

Encapsulates the end of an interceptor chain, which is the actual object being affected.

Methods

new   process_next  

Public Class methods

Create a new ProxyObjectChainElement that wraps the given object.

[Source]

    # File lib/needle/interceptor-chain.rb, line 68
68:       def initialize( obj )
69:         @obj = obj
70:       end

Public Instance methods

Invoke the method represented by the context on the wrapped object.

[Source]

    # File lib/needle/interceptor-chain.rb, line 73
73:       def process_next( context )
74:         @obj.__send__( context.sym, *context.args, &context.block )
75:       end

[Validate]