Class: Bora::Output

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

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ Output

Returns a new instance of Output.



3
4
5
# File 'lib/bora/output.rb', line 3

def initialize(output)
  @output = output
end

Instance Method Details

#keyObject



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

def key
  @output.output_key
end

#to_sObject



15
16
17
18
# File 'lib/bora/output.rb', line 15

def to_s
  desc = @output.description ? " (#{@output.description})" : ""
  "#{@output.output_key} - #{@output.output_value} #{desc}"
end

#valueObject



11
12
13
# File 'lib/bora/output.rb', line 11

def value
  @output.output_value
end