Class: Alki::Execution::Reference
- Inherits:
-
Object
- Object
- Alki::Execution::Reference
- Defined in:
- lib/alki/execution/reference.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#blk ⇒ Object
Returns the value of attribute blk.
-
#instance ⇒ Object
Returns the value of attribute instance.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #call ⇒ Object
- #executor ⇒ Object
-
#initialize(instance, meta, path, args, blk) ⇒ Reference
constructor
A new instance of Reference.
Constructor Details
#initialize(instance, meta, path, args, blk) ⇒ Reference
Returns a new instance of Reference.
5 6 7 8 9 10 11 |
# File 'lib/alki/execution/reference.rb', line 5 def initialize(instance,,path,args,blk) @instance = instance @meta = @path = path @args = args @blk = blk end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
4 5 6 |
# File 'lib/alki/execution/reference.rb', line 4 def args @args end |
#blk ⇒ Object
Returns the value of attribute blk.
4 5 6 |
# File 'lib/alki/execution/reference.rb', line 4 def blk @blk end |
#instance ⇒ Object
Returns the value of attribute instance.
4 5 6 |
# File 'lib/alki/execution/reference.rb', line 4 def instance @instance end |
#meta ⇒ Object
Returns the value of attribute meta.
4 5 6 |
# File 'lib/alki/execution/reference.rb', line 4 def @meta end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/alki/execution/reference.rb', line 4 def path @path end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/alki/execution/reference.rb', line 17 def call executor.execute @meta, @path, @args, @blk end |
#executor ⇒ Object
13 14 15 |
# File 'lib/alki/execution/reference.rb', line 13 def executor @instance.__executor__ end |