Class: TTK::Weights::WMin

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

Constant Summary

Constants inherited from Weight

TTK::Weights::Weight::BASE

Instance Attribute Summary

Attributes inherited from Weight

#max, #min

Instance Method Summary collapse

Methods inherited from WFloat

#get

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