Class: Bora::Output
- Inherits:
-
Object
- Object
- Bora::Output
- Defined in:
- lib/bora/output.rb
Instance Method Summary collapse
-
#initialize(output) ⇒ Output
constructor
A new instance of Output.
- #key ⇒ Object
- #to_s ⇒ Object
- #value ⇒ Object
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
#key ⇒ Object
7 8 9 |
# File 'lib/bora/output.rb', line 7 def key @output.output_key end |
#to_s ⇒ Object
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 |
#value ⇒ Object
11 12 13 |
# File 'lib/bora/output.rb', line 11 def value @output.output_value end |