Class: Overcommit::Subprocess::Result
- Inherits:
-
Struct
- Object
- Struct
- Overcommit::Subprocess::Result
- Defined in:
- lib/overcommit/subprocess.rb
Overview
Encapsulates the result of a process.
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
9 10 11 |
# File 'lib/overcommit/subprocess.rb', line 9 def status @status end |
#stderr ⇒ Object
Returns the value of attribute stderr
9 10 11 |
# File 'lib/overcommit/subprocess.rb', line 9 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
9 10 11 |
# File 'lib/overcommit/subprocess.rb', line 9 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
10 11 12 |
# File 'lib/overcommit/subprocess.rb', line 10 def success? status == 0 end |