Class: Pacer::SideEffect::AsVar::AsPipe

Inherits:
Pipes::RubyPipe show all
Defined in:
lib/pacer/side_effect/as_var.rb

Instance Attribute Summary collapse

Attributes inherited from Pipes::RubyPipe

#starts

Instance Method Summary collapse

Methods inherited from Pipes::RubyPipe

#enablePath, #reset, #setStarts

Constructor Details

#initialize(pipe, vars, variable_name) ⇒ AsPipe

Returns a new instance of AsPipe.



19
20
21
22
23
24
# File 'lib/pacer/side_effect/as_var.rb', line 19

def initialize(pipe, vars, variable_name)
  super()
  setStarts pipe if pipe
  @vars = vars
  @variable_name = variable_name
end

Instance Attribute Details

#varsObject

Returns the value of attribute vars.



17
18
19
# File 'lib/pacer/side_effect/as_var.rb', line 17

def vars
  @vars
end

Instance Method Details

#getCurrentPathObject



26
27
28
# File 'lib/pacer/side_effect/as_var.rb', line 26

def getCurrentPath
  starts.getCurrentPath
end