Class: Typhoid::TyphoeusDescriptor
- Inherits:
-
Object
- Object
- Typhoid::TyphoeusDescriptor
- Defined in:
- lib/typhoid.rb
Instance Method Summary collapse
- #bug_version ⇒ Object
- #major_version ⇒ Object
- #matched_version ⇒ Object
- #minor_version ⇒ Object
- #version ⇒ Object
Instance Method Details
#bug_version ⇒ Object
30 31 32 |
# File 'lib/typhoid.rb', line 30 def bug_version matched_version[:bug].to_i end |
#major_version ⇒ Object
22 23 24 |
# File 'lib/typhoid.rb', line 22 def major_version matched_version[:major].to_i end |
#matched_version ⇒ Object
18 19 20 |
# File 'lib/typhoid.rb', line 18 def matched_version version.to_s.match /(?<major>\d+)\.(?<minor>\d+)\.(?<bug>\d+)/ end |
#minor_version ⇒ Object
26 27 28 |
# File 'lib/typhoid.rb', line 26 def minor_version matched_version[:minor].to_i end |
#version ⇒ Object
14 15 16 |
# File 'lib/typhoid.rb', line 14 def version Typhoeus::VERSION end |