Module: ClosureForwardable::Version

Defined in:
lib/closure_forwardable/version.rb

Overview

Version information about ClosureForwardable. We follow semantic versioning

Constant Summary collapse

MAJOR =

MAJOR version. It is incremented after incompatible API changes

0
MINOR =

MINOR version. It is incremented after adding functionality in a backwards-compatible manner

1
PATCH =

PATCH version. It is incremented when making backwards-compatible bug-fixes.

1
STRING =

A standard string representation of the version parts

[MAJOR, MINOR, PATCH].compact.join('.').freeze

Class Method Summary collapse

Class Method Details

.gem_versionGem::Version

Returns the version of the currently loaded ClosureForwardable as a Gem::Version.

Returns:

  • (Gem::Version)

    the version of the currently loaded ClosureForwardable as a Gem::Version



19
20
21
# File 'lib/closure_forwardable/version.rb', line 19

def self.gem_version
  Gem::Version.new to_s
end

.to_sString

Returns the ClosureForwardable version as a semver-compliant string.

Returns:

  • (String)

    the ClosureForwardable version as a semver-compliant string



25
26
27
# File 'lib/closure_forwardable/version.rb', line 25

def self.to_s
  STRING
end