Class: Kuromi::Runner::Output
- Inherits:
-
Object
- Object
- Kuromi::Runner::Output
- Defined in:
- lib/kuromi/runner/output.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(code, stdout, stderr) ⇒ Output
constructor
A new instance of Output.
- #success? ⇒ Boolean
Constructor Details
#initialize(code, stdout, stderr) ⇒ Output
Returns a new instance of Output.
6 7 8 9 10 |
# File 'lib/kuromi/runner/output.rb', line 6 def initialize(code, stdout, stderr) @code = code @stdout = Option[stdout] @stderr = Option[stderr] end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
4 5 6 |
# File 'lib/kuromi/runner/output.rb', line 4 def code @code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
4 5 6 |
# File 'lib/kuromi/runner/output.rb', line 4 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
4 5 6 |
# File 'lib/kuromi/runner/output.rb', line 4 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
12 13 14 |
# File 'lib/kuromi/runner/output.rb', line 12 def success? @code == 0 end |