Module: Readorder::Version

Extended by:
Version
Included in:
Readorder, Version
Defined in:
lib/readorder/version.rb

Constant Summary collapse

MAJOR =
2
MINOR =
0
BUILD =
0
STRING =
Version.to_s

Instance Method Summary collapse

Instance Method Details

#to_aObject



12
13
14
# File 'lib/readorder/version.rb', line 12

def to_a 
  [MAJOR, MINOR, BUILD]
end

#to_hashObject



20
21
22
# File 'lib/readorder/version.rb', line 20

def to_hash
  { :major => MAJOR, :minor => MINOR, :build => BUILD }
end

#to_sObject



16
17
18
# File 'lib/readorder/version.rb', line 16

def to_s
  to_a.join(".")
end