| Class | Gem::Version |
| In: |
lib/rubygems/version.rb
|
| Parent: | Object |
The Version class processes string versions into comparable values
| NUM_RE | = | /\s*(\d+(\.\d+)*)*\s*/ |
| version | [RW] |
Checks if version string is valid format
| str: | [String] the version string |
| return: | [Boolean] true if the string format is correct, otherwise false |
Constructs a version from the supplied string
| version: | [String] The version string. Format is digit.digit… |
Return a new version object where the next to the last revision number is one greater. (e.g. 5.3.1 => 5.4)