Module: Readorder::Version
Constant Summary collapse
- MAJOR =
2
- MINOR =
0
- BUILD =
0
- STRING =
Version.to_s
Instance Method Summary collapse
Instance Method Details
#to_a ⇒ Object
12 13 14 |
# File 'lib/readorder/version.rb', line 12 def to_a [MAJOR, MINOR, BUILD] end |
#to_hash ⇒ Object
20 21 22 |
# File 'lib/readorder/version.rb', line 20 def to_hash { :major => MAJOR, :minor => MINOR, :build => BUILD } end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/readorder/version.rb', line 16 def to_s to_a.join(".") end |