Class: TTK::Weights::WMin
- Defined in:
- lib/ttk/weights/WMin.rb
Constant Summary
Constants inherited from Weight
Instance Attribute Summary
Attributes inherited from Weight
Instance Method Summary collapse
Methods inherited from WFloat
Methods inherited from Weight
#*, #+, #fail?, #initialize, #long_get, #pass?, #start?
Constructor Details
This class inherits a constructor from TTK::Weights::Weight
Instance Method Details
#normalize(weight) ⇒ Object
13 14 15 |
# File 'lib/ttk/weights/WMin.rb', line 13 def normalize ( weight ) (to_f == @max) ? self.class.new(:PASS) : self.class.new(:FAIL) end |