Sha256: 6e47ac5dddebfa053074c4e5c1433394473a3728c4fcb10014708b4a72a23b1d
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
#-- # Copyright (c) 2008 Jeremy Hinegardner # All rights reserved. See LICENSE and/or COPYING for details #++ module Hitimes # # module containing all the version information about Hitimes # module Version # Major version number MAJOR = 1 # Minor version number MINOR = 0 # Build number BUILD = 2 # # :call-seq: # Version.to_a -> [ MAJOR, MINOR, BUILD ] # # Return the version as an array of Integers # def self.to_a [MAJOR, MINOR, BUILD] end # # :call-seq: # Version.to_s -> "MAJOR.MINOR.BUILD" # # Return the version as a String with dotted notation # def self.to_s to_a.join(".") end # # :call-seq: # Version.to_hash -> { :major => ..., :minor => ..., :build => ... } # # Return the version as a Hash # def self.to_hash { :major => MAJOR, :minor => MINOR, :build => BUILD } end # The Version in MAJOR.MINOR.BUILD dotted notation STRING = Version.to_s end # The Version in MAJOR.MINOR.BUILD dotted notation VERSION = Version.to_s end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hitimes-1.0.2-x86-mswin32-60 | lib/hitimes/version.rb |
hitimes-1.0.2 | lib/hitimes/version.rb |