Module: Hitimes::Version
- Defined in:
- lib/hitimes/version.rb
Overview
module containing all the version information about Hitimes
Constant Summary
- MAJOR =
Major version number
1- MINOR =
Minor version number
1- BUILD =
Build number
1- STRING =
The Version in MAJOR.MINOR.BUILD dotted notation
Version.to_s
Class Method Summary (collapse)
-
+ (Object) to_a
:call-seq:.
-
+ (Object) to_hash
:call-seq:.
-
+ (Object) to_s
:call-seq:.
Class Method Details
+ (Object) to_a
:call-seq:
Version.to_a -> [ MAJOR, MINOR, BUILD ]
Return the version as an array of Integers
27 28 29 |
# File 'lib/hitimes/version.rb', line 27 def self.to_a [MAJOR, MINOR, BUILD] end |
+ (Object) to_hash
:call-seq:
Version.to_hash -> { :major => ..., :minor => ..., :build => ... }
Return the version as a Hash
47 48 49 |
# File 'lib/hitimes/version.rb', line 47 def self.to_hash { :major => MAJOR, :minor => MINOR, :build => BUILD } end |
+ (Object) to_s
:call-seq:
Version.to_s -> "MAJOR.MINOR.BUILD"
Return the version as a String with dotted notation
37 38 39 |
# File 'lib/hitimes/version.rb', line 37 def self.to_s to_a.join(".") end |