Class: Nosey::Probe::Sum
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
#sample(value) ⇒ Object
66 67 68 69 |
# File 'lib/nosey/probe.rb', line 66 def sample(value) @value ||= 0 @value += value end |