Class: Ibex::BoundedSubprocess::Result
- Inherits:
-
Object
- Object
- Ibex::BoundedSubprocess::Result
- Defined in:
- lib/ibex/bounded_subprocess.rb,
sig/ibex/bounded_subprocess.rbs
Overview
Immutable observation of one bounded child-process execution.
Instance Attribute Summary collapse
- #output_limited ⇒ Boolean readonly
- #status ⇒ Process::Status readonly
- #stderr ⇒ String readonly
- #stdout ⇒ String readonly
- #timed_out ⇒ Boolean readonly
Instance Method Summary collapse
-
#initialize(stdout:, stderr:, status:, timed_out:, output_limited:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(stdout:, stderr:, status:, timed_out:, output_limited:) ⇒ Result
Returns a new instance of Result.
24 25 26 27 28 29 30 31 |
# File 'lib/ibex/bounded_subprocess.rb', line 24 def initialize(stdout:, stderr:, status:, timed_out:, output_limited:) @stdout = stdout.freeze @stderr = stderr.freeze @status = status @timed_out = timed_out @output_limited = output_limited freeze end |
Instance Attribute Details
#output_limited ⇒ Boolean (readonly)
20 21 22 |
# File 'lib/ibex/bounded_subprocess.rb', line 20 def output_limited @output_limited end |
#status ⇒ Process::Status (readonly)
18 19 20 |
# File 'lib/ibex/bounded_subprocess.rb', line 18 def status @status end |
#stderr ⇒ String (readonly)
17 18 19 |
# File 'lib/ibex/bounded_subprocess.rb', line 17 def stderr @stderr end |
#stdout ⇒ String (readonly)
16 17 18 |
# File 'lib/ibex/bounded_subprocess.rb', line 16 def stdout @stdout end |
#timed_out ⇒ Boolean (readonly)
19 20 21 |
# File 'lib/ibex/bounded_subprocess.rb', line 19 def timed_out @timed_out end |