Class: Windows::Units::Recognizer::Formats::Pixel

Inherits:
Base
  • Object
show all
Defined in:
lib/windows/units/recognizer.rb

Instance Attribute Summary

Attributes inherited from Base

#el, #unit

Instance Method Summary collapse

Methods inherited from Base

#format, #return_match

Instance Method Details

#matchObject

match 50, 50.5, 50.02



28
29
30
31
# File 'lib/windows/units/recognizer.rb', line 28

def match
  data = el.kind_of?(Numeric)
  item = return_match(self, data) { @unit = el }
end