Module: Hen::Version

Defined in:
lib/hen/version.rb

Constant Summary collapse

MAJOR =
0
MINOR =
9
TINY =
0

Class Method Summary collapse

Class Method Details

.pessimistic_requirementObject

Pessimistic version constraint.


22
23
24
# File 'lib/hen/version.rb', line 22

def pessimistic_requirement
  ["~> #{MAJOR}.#{MINOR}", ">= #{to_s}"]
end

.to_aObject

Returns array representation.


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

def to_a
  [MAJOR, MINOR, TINY]
end

.to_sObject

Short-cut for version string.


17
18
19
# File 'lib/hen/version.rb', line 17

def to_s
  to_a.join('.')
end