Class: Alki::Execution::Reference

Inherits:
Object
  • Object
show all
Defined in:
lib/alki/execution/reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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,meta,path,args,blk)
  @instance = instance
  @meta = 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
  @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