Method: Gitlab::Metrics::Delta#compared_with
- Defined in:
- lib/gitlab/metrics/delta.rb
#compared_with(new_value) ⇒ Object
new_value - The value to compare with as a Numeric.
Returns a new Numeric (depending on the type of new_value).
26 27 28 29 30 31 |
# File 'lib/gitlab/metrics/delta.rb', line 26 def compared_with(new_value) delta = new_value - @value @value = new_value delta end |