Class: Lightpanda::Binary::Result
- Inherits:
-
Struct
- Object
- Struct
- Lightpanda::Binary::Result
- Defined in:
- lib/lightpanda/binary.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status
11 12 13 |
# File 'lib/lightpanda/binary.rb', line 11 def status @status end |
#stderr ⇒ Object
Returns the value of attribute stderr
11 12 13 |
# File 'lib/lightpanda/binary.rb', line 11 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
11 12 13 |
# File 'lib/lightpanda/binary.rb', line 11 def stdout @stdout end |
Instance Method Details
#exit_code ⇒ Object
16 17 18 |
# File 'lib/lightpanda/binary.rb', line 16 def exit_code status.exitstatus end |
#output ⇒ Object
20 21 22 |
# File 'lib/lightpanda/binary.rb', line 20 def output stdout.empty? ? stderr : stdout end |
#success? ⇒ Boolean
12 13 14 |
# File 'lib/lightpanda/binary.rb', line 12 def success? status.success? end |