Class: Nosey::Probe::Maximum
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
59 60 61 62 |
# File 'lib/nosey/probe.rb', line 59 def sample(value) @value ||= value @value = value if value > @value end |