Class: Uttk::Weights::WMin
- Defined in:
- lib/uttk/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, #max?, #method_missing, #min?, #pass?, #start?
Constructor Details
This class inherits a constructor from Uttk::Weights::Weight
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Uttk::Weights::Weight
Instance Method Details
#normalize(weight) ⇒ Object
13 14 15 |
# File 'lib/uttk/weights/WMin.rb', line 13 def normalize ( weight ) (to_f == @max) ? self.class.new(:PASS) : self.class.new(:FAIL) end |