Class: Silas::Sandbox::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/silas/sandbox.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#exit_statusObject

Returns the value of attribute exit_status

Returns:

  • (Object)

    the current value of exit_status



8
9
10
# File 'lib/silas/sandbox.rb', line 8

def exit_status
  @exit_status
end

#stderrObject

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



8
9
10
# File 'lib/silas/sandbox.rb', line 8

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



8
9
10
# File 'lib/silas/sandbox.rb', line 8

def stdout
  @stdout
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


9
# File 'lib/silas/sandbox.rb', line 9

def success? = exit_status.to_i.zero?