module Attribool::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 Instance Methods

to_a() click to toggle source

Version as +[MAJOR, MINOR, PATCH]+

@return [Array<Integer>]

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

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

@return [Hash]

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

Version as MAJOR.MINOR.PATCH

@return [String]

# File lib/attribool/version.rb, line 40
def to_s
  to_a.join(".")
end