Class: Infobar::Trend
Instance Method Summary collapse
-
#initialize(values, symbols: %i[ ↘ → ↗ ])) ⇒ Trend
constructor
A new instance of Trend.
- #to_s ⇒ Object
Constructor Details
#initialize(values, symbols: %i[ ↘ → ↗ ])) ⇒ Trend
Returns a new instance of Trend.
2 3 4 5 6 |
# File 'lib/infobar/trend.rb', line 2 def initialize(values, symbols: %i[ ↘ → ↗ ]) @values = values @symbols = symbols @string = arrow end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/infobar/trend.rb', line 8 def to_s @string end |