Class: Kuromi::Runner::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/kuromi/runner/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



4
5
6
# File 'lib/kuromi/runner/output.rb', line 4

def code
  @code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



4
5
6
# File 'lib/kuromi/runner/output.rb', line 4

def stderr
  @stderr
end

#stdoutObject (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/kuromi/runner/output.rb', line 12

def success?
  @code == 0
end