Class: Uttk::Weights::WMin

Inherits:
WFloat show all
Defined in:
lib/uttk/weights/WMin.rb

Constant Summary

Constants inherited from Weight

Uttk::Weights::Weight::BASE

Instance Attribute Summary

Attributes inherited from Weight

#max, #min, #val

Instance Method Summary collapse

Methods inherited from WFloat

#get

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