module Planter::Version

Module that contains all gem version information. Follows semantic versioning. Read: semver.org/

Constants

MAJOR

Major version.

@return [Integer]

MINOR

Minor version.

@return [Integer]

PATCH

Patch version.

@return [Integer]

Public Class Methods

to_a() click to toggle source

Version as +[MAJOR, MINOR, PATCH]+

@return [Array]

# File lib/planter/version.rb, line 30
def self.to_a
  [MAJOR, MINOR, PATCH]
end
to_h() click to toggle source

Version as +{major: MAJOR, minor: MINOR, patch: PATCH}+

@return [Hash]

# File lib/planter/version.rb, line 46
def self.to_h
  Hash[%i[major minor patch].zip(to_a)]
end
to_s() click to toggle source

Version as MAJOR.MINOR.PATCH

@return [String]

# File lib/planter/version.rb, line 38
def self.to_s
  to_a.join('.')
end