| Class | RPM::Version |
| In: |
lib/rpm/version.rb
|
| Parent: | Object |
Creates a version object from a string representation @param [String] vr version and release in the form "v-r" @param [Number] e epoch @return [Version]
Creates a version object from a string representation @param [String] v version @param [String] r release @param [Number] e epoch @return [Version]
@example
RPM:: Version.new "1.0.0-3" RPM:: Version.new "1.04" RPM:: Version.new "1.0.0-3k", 1 RPM:: Version.new "2.0.3", "5k"
Comparison between versions @param [Version] other @return [Number] -1 if other is greater than, 0 if other is equal to,
and +1 if other is less than version.
@example
v1 = RPM::Version.new("3.0-0",1)
v2 = RPM::Version.new("3.1-0",1)
v1 <=> v2
=> -1