class V
Constants
- VERSION
Public Instance Methods
build()
click to toggle source
# File lib/v1.rb, line 12 def build return segments[2] end
major()
click to toggle source
# File lib/v1.rb, line 4 def major return segments[0] end
minor()
click to toggle source
# File lib/v1.rb, line 8 def minor return segments[1] end
numeric()
click to toggle source
# File lib/v1.rb, line 18 def numeric return @numeric ||= begin major, minor, build = segments major + 0.001 * minor.to_i + 0.000001 * build.to_i end end