Class: Elm::RunStatus

Inherits:
Object
  • Object
show all
Includes:
Contracts::Builtin, Contracts::Core
Defined in:
lib/elm/runnable.rb

Overview

Status if execution of Runnable

Direct Known Subclasses

RunError, RunSuccess

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stdout, with_error: '') ⇒ RunStatus

Returns a new instance of RunStatus.



18
19
20
21
22
23
# File 'lib/elm/runnable.rb', line 18

def initialize(stdout, with_error: '')
  @stdout = stdout
  @stderr = with_error

  self
end

Instance Attribute Details

#stderrObject (readonly)

Returns the value of attribute stderr.



15
16
17
# File 'lib/elm/runnable.rb', line 15

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



15
16
17
# File 'lib/elm/runnable.rb', line 15

def stdout
  @stdout
end