Class: DatalackeyParentProcess
- Inherits:
-
Object
- Object
- DatalackeyParentProcess
- Defined in:
- lib/datalackeylib.rb
Instance Attribute Summary collapse
-
#executable ⇒ Object
readonly
Returns the value of attribute executable.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdin ⇒ Object
readonly
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(to_lackey, from_lackey) ⇒ DatalackeyParentProcess
constructor
A new instance of DatalackeyParentProcess.
Constructor Details
#initialize(to_lackey, from_lackey) ⇒ DatalackeyParentProcess
Returns a new instance of DatalackeyParentProcess.
116 117 118 119 120 121 122 |
# File 'lib/datalackeylib.rb', line 116 def initialize(to_lackey, from_lackey) @exit_code = 0 @stdout = from_lackey @stdin = to_lackey @stderr = nil @executable = nil end |
Instance Attribute Details
#executable ⇒ Object (readonly)
Returns the value of attribute executable.
114 115 116 |
# File 'lib/datalackeylib.rb', line 114 def executable @executable end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
114 115 116 |
# File 'lib/datalackeylib.rb', line 114 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
114 115 116 |
# File 'lib/datalackeylib.rb', line 114 def stderr @stderr end |
#stdin ⇒ Object (readonly)
Returns the value of attribute stdin.
114 115 116 |
# File 'lib/datalackeylib.rb', line 114 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
114 115 116 |
# File 'lib/datalackeylib.rb', line 114 def stdout @stdout end |
Instance Method Details
#finish ⇒ Object
124 125 126 |
# File 'lib/datalackeylib.rb', line 124 def finish @stdin.close end |