Class: Overcommit::Subprocess::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/overcommit/subprocess.rb

Overview

Encapsulates the result of a process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



9
10
11
# File 'lib/overcommit/subprocess.rb', line 9

def status
  @status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



9
10
11
# File 'lib/overcommit/subprocess.rb', line 9

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



9
10
11
# File 'lib/overcommit/subprocess.rb', line 9

def stdout
  @stdout
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/overcommit/subprocess.rb', line 10

def success?
  status == 0
end