Method: Comparison::Presenter#description
- Defined in:
- lib/comparison/presenter.rb
#description ⇒ Object
Returns a string description of the direction of change. Possible descriptions are “positive”, “negative”, and “nochange”.
203 204 205 206 207 208 209 210 211 |
# File 'lib/comparison/presenter.rb', line 203 def description if positive? 'positive' elsif negative? 'negative' else 'nochange' end end |