Class: Copland::InterceptorChainBuilder::InvocationContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/copland/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

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



47
48
49
# File 'lib/copland/interceptor-chain.rb', line 47

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



47
48
49
# File 'lib/copland/interceptor-chain.rb', line 47

def block
  @block
end

#symObject

Returns the value of attribute sym

Returns:

  • (Object)

    the current value of sym



47
48
49
# File 'lib/copland/interceptor-chain.rb', line 47

def sym
  @sym
end