Class: Needle::InterceptorChainBuilder::InvocationContext
- Inherits:
-
Struct
- Object
- Struct
- Needle::InterceptorChainBuilder::InvocationContext
- 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
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#data ⇒ Object
Returns the value of attribute data.
-
#sym ⇒ Object
Returns the value of attribute sym.
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
31 32 33 |
# File 'lib/needle/interceptor-chain.rb', line 31 def args @args end |
#block ⇒ Object
Returns the value of attribute block
31 32 33 |
# File 'lib/needle/interceptor-chain.rb', line 31 def block @block end |
#data ⇒ Object
Returns the value of attribute data
31 32 33 |
# File 'lib/needle/interceptor-chain.rb', line 31 def data @data end |
#sym ⇒ Object
Returns the value of attribute sym
31 32 33 |
# File 'lib/needle/interceptor-chain.rb', line 31 def sym @sym end |