Class: Opm::TemporaryProcessObject

Inherits:
Object
  • Object
show all
Defined in:
lib/opm.rb

Overview

A Temporary Object, if the process is working while we want reach the instance variable, it attaches the running process, and variable name for in the future we can get the value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(process, var) ⇒ TemporaryProcessObject

Returns a new instance of TemporaryProcessObject.



37
38
39
40
# File 'lib/opm.rb', line 37

def initialize( process, var )
	@process = process
	@variable = var
end

Instance Attribute Details

#processObject (readonly)

The process, which working on the object



32
33
34
# File 'lib/opm.rb', line 32

def process
  @process
end

#variableObject (readonly)

Name of the object



35
36
37
# File 'lib/opm.rb', line 35

def variable
  @variable
end