Class: DeviceDetector::VersionExtractor
- Inherits:
-
MetadataExtractor
- Object
- Struct
- MetadataExtractor
- DeviceDetector::VersionExtractor
- Defined in:
- lib/device_detector/version_extractor.rb
Constant Summary collapse
- MAJOR_VERSION_2 =
Gem::Version.new('2.0')
- MAJOR_VERSION_3 =
Gem::Version.new('3.0')
- MAJOR_VERSION_4 =
Gem::Version.new('4.0')
- MAJOR_VERSION_8 =
Gem::Version.new('8.0')
Instance Attribute Summary
Attributes inherited from MetadataExtractor
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/device_detector/version_extractor.rb', line 10 def call simple_version = super&.chomp('.') return simple_version unless simple_version&.empty? os_version_by_regexes end |