Module: MetasploitDataModels::Version
- Defined in:
- lib/metasploit_data_models/version.rb
Overview
Holds components of VERSION as defined by semantic versioning v2.0.0.
Constant Summary collapse
- MAJOR =
The major version number.
0- MINOR =
The minor version number, scoped to the MAJOR version number.
18- PATCH =
The patch number, scoped to the MINOR version number.
0
Class Method Summary collapse
-
.full ⇒ String
The full version string, including the MAJOR, MINOR, PATCH, and optionally, the PRERELEASE in the semantic versioning v2.0.0 format.
Class Method Details
.full ⇒ String
The full version string, including the MAJOR, MINOR, PATCH, and optionally, the PRERELEASE in the semantic versioning v2.0.0 format.
16 17 18 19 20 21 22 23 24 |
# File 'lib/metasploit_data_models/version.rb', line 16 def self.full version = "#{MAJOR}.#{MINOR}.#{PATCH}" if defined? PRERELEASE version = "#{version}-#{PRERELEASE}" end version end |