Class: Ruby::Rego::Builtins::Semver::Version
- Inherits:
-
Struct
- Object
- Struct
- Ruby::Rego::Builtins::Semver::Version
- Defined in:
- lib/ruby/rego/builtins/semver.rb
Overview
A parsed version: numeric major/minor/patch and a list of prerelease identifiers (empty for a release). Build metadata is dropped — it does not affect comparison.
Instance Attribute Summary collapse
-
#major ⇒ Object
Returns the value of attribute major.
-
#minor ⇒ Object
Returns the value of attribute minor.
-
#patch ⇒ Object
Returns the value of attribute patch.
-
#prerelease ⇒ Object
Returns the value of attribute prerelease.
Instance Attribute Details
#major ⇒ Object
Returns the value of attribute major
46 47 48 |
# File 'lib/ruby/rego/builtins/semver.rb', line 46 def major @major end |
#minor ⇒ Object
Returns the value of attribute minor
46 47 48 |
# File 'lib/ruby/rego/builtins/semver.rb', line 46 def minor @minor end |
#patch ⇒ Object
Returns the value of attribute patch
46 47 48 |
# File 'lib/ruby/rego/builtins/semver.rb', line 46 def patch @patch end |
#prerelease ⇒ Object
Returns the value of attribute prerelease
46 47 48 |
# File 'lib/ruby/rego/builtins/semver.rb', line 46 def prerelease @prerelease end |