Class VersionNumber
In: lib/more/facets/version.rb
Parent: Object

VersionNumber

VersionNumber is a simplified form of a Tuple class desgined specifically for dealing with version numbers.

Methods

<=>   =~   []   bump   constraint_lambda   inspect   major   method_missing   minor   new   parse_constraint   teeny   to_s   to_str  

Included Modules

Comparable

Public Class methods

Parses a string constraint returning the operation as a lambda.

Public Instance methods

"Spaceship" comparsion operator.

For pessimistic constraint (like ’~>’ in gems)

Major is the first number in the version series.

Minor is the second number in the version series.

Teeny is third number in the version series.

This is here only becuase File.join calls it instead of to_s.

[Validate]