Class: Nosey::Probe::Minimum
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
52 53 54 55 |
# File 'lib/nosey/probe.rb', line 52 def sample(value) @value ||= value @value = value if value < @value end |