Module: Lingo::Version
- Defined in:
- lib/lingo/version.rb
Constant Summary collapse
- MAJOR =
1
- MINOR =
10
- TINY =
2
Class Method Summary collapse
- .next_minor ⇒ Object
-
.to_a ⇒ Object
Returns array representation.
-
.to_s ⇒ Object
Short-cut for version string.
Class Method Details
.next_minor ⇒ Object
21 22 23 |
# File 'lib/lingo/version.rb', line 21 def next_minor to_s[0, 3].next end |
.to_a ⇒ Object
Returns array representation.
12 13 14 |
# File 'lib/lingo/version.rb', line 12 def to_a [MAJOR, MINOR, TINY] end |
.to_s ⇒ Object
Short-cut for version string.
17 18 19 |
# File 'lib/lingo/version.rb', line 17 def to_s to_a.join('.') end |