Class: Terrapin::CommandLine::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/terrapin/command_line/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output = nil, error_output = nil) ⇒ Output

Returns a new instance of Output.



2
3
4
5
# File 'lib/terrapin/command_line/output.rb', line 2

def initialize(output = nil, error_output = nil)
  @output = output
  @error_output = error_output
end

Instance Attribute Details

#error_outputObject (readonly)

Returns the value of attribute error_output.



7
8
9
# File 'lib/terrapin/command_line/output.rb', line 7

def error_output
  @error_output
end

#outputObject (readonly)

Returns the value of attribute output.



7
8
9
# File 'lib/terrapin/command_line/output.rb', line 7

def output
  @output
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/terrapin/command_line/output.rb', line 9

def to_s
  output.to_s
end