Class: Nosey::Probe::Minimum

Inherits:
Base
  • Object
show all
Defined in:
lib/nosey/probe.rb

Instance Attribute Summary

Attributes inherited from Base

#name, #value

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