Class: Elm::CompileOutput

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

Overview

Compilation output including status

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output, run_status) ⇒ CompileOutput

Returns a new instance of CompileOutput.



19
20
21
22
23
24
# File 'lib/elm/files.rb', line 19

def initialize(output, run_status)
  @output = output
  @run_status = run_status

  self
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



16
17
18
# File 'lib/elm/files.rb', line 16

def output
  @output
end

#run_statusObject (readonly)

Returns the value of attribute run_status.



16
17
18
# File 'lib/elm/files.rb', line 16

def run_status
  @run_status
end

Instance Method Details

#stderrObject



32
33
34
# File 'lib/elm/files.rb', line 32

def stderr
  @run_status.stderr
end

#stdoutObject



27
28
29
# File 'lib/elm/files.rb', line 27

def stdout
  @run_status.stdout
end