Class | Net::SSH::Version |
In: |
lib/net/ssh/version.rb
|
Parent: | Object |
A class for describing the current version of a library. The version consists of three parts: the major number, the minor number, and the tiny (or patch) number.
Two Version instances may be compared, so that you can test that a version of a library is what you require:
require 'net/ssh/version' if Net::SSH::Version::CURRENT < Net::SSH::Version[2,1,0] abort "your software is too old!" end
MAJOR | = | 2 | The major component of this version of the Net::SSH library | |
MINOR | = | 0 | The minor component of this version of the Net::SSH library | |
TINY | = | 20 | The tiny component of this version of the Net::SSH library | |
CURRENT | = | new(MAJOR, MINOR, TINY) | The current version of the Net::SSH library as a Version instance | |
STRING | = | CURRENT.to_s | The current version of the Net::SSH library as a String |
major | [R] | |
minor | [R] | |
tiny | [R] |