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
-
.gem_version ⇒ Gem::Version
The version of the currently loaded ClosureForwardable as a
Gem::Version
. -
.to_s ⇒ String
The ClosureForwardable version as a semver-compliant string.
Class Method Details
.gem_version ⇒ Gem::Version
Returns 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_s ⇒ String
Returns 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 |