Class: Nosey::Probe::Count
Overview
Count up/down values.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #reset, #set, #to_hash
Constructor Details
This class inherits a constructor from Nosey::Probe::Base
Instance Method Details
#decrement(by = 1) ⇒ Object
78 79 80 |
# File 'lib/nosey/probe.rb', line 78 def decrement(by=1) change -by end |
#increment(by = 1) ⇒ Object
74 75 76 |
# File 'lib/nosey/probe.rb', line 74 def increment(by=1) change by end |