Class: Needle::InterceptorChainBuilder::InvocationContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/needle/interceptor-chain.rb

Overview

The context of a method invocation. This is used in an interceptor chain to encapsulate the elements of the current invocation. sym: the name of the method being invoked args: the argument list being passed to the method block: the reference to the block attached to the method invocation data: a hash that may be used by clients for storing arbitrary data in

the context.

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



31
32
33
# File 'lib/needle/interceptor-chain.rb', line 31

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



31
32
33
# File 'lib/needle/interceptor-chain.rb', line 31

def block
  @block
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



31
32
33
# File 'lib/needle/interceptor-chain.rb', line 31

def data
  @data
end

#symObject

Returns the value of attribute sym

Returns:

  • (Object)

    the current value of sym



31
32
33
# File 'lib/needle/interceptor-chain.rb', line 31

def sym
  @sym
end