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

Instance Attribute Details

#argsObject

Returns the value of attribute args.



4
5
6
# File 'lib/alki/execution/reference.rb', line 4

def args
  @args
end

#blkObject

Returns the value of attribute blk.



4
5
6
# File 'lib/alki/execution/reference.rb', line 4

def blk
  @blk
end

#executorObject

Returns the value of attribute executor.



4
5
6
# File 'lib/alki/execution/reference.rb', line 4

def executor
  @executor
end

#metaObject

Returns the value of attribute meta.



4
5
6
# File 'lib/alki/execution/reference.rb', line 4

def meta
  @meta
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/alki/execution/reference.rb', line 4

def path
  @path
end

Instance Method Details

#callObject



13
14
15
# File 'lib/alki/execution/reference.rb', line 13

def call
  @executor.execute @meta, @path, @args, @blk
end