Class: Opm::TemporaryProcessObject
- Inherits:
-
Object
- Object
- Opm::TemporaryProcessObject
- 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
-
#process ⇒ Object
readonly
The process, which working on the object.
-
#variable ⇒ Object
readonly
Name of the object.
Instance Method Summary collapse
-
#initialize(process, var) ⇒ TemporaryProcessObject
constructor
A new instance of TemporaryProcessObject.
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
#process ⇒ Object (readonly)
The process, which working on the object
32 33 34 |
# File 'lib/opm.rb', line 32 def process @process end |
#variable ⇒ Object (readonly)
Name of the object
35 36 37 |
# File 'lib/opm.rb', line 35 def variable @variable end |