Exception: Semverse::InvalidVersionFormat
- Inherits:
-
SemverseError
- Object
- StandardError
- SemverseError
- Semverse::InvalidVersionFormat
- Defined in:
- lib/semverse/errors.rb
Instance Attribute Summary collapse
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version) ⇒ InvalidVersionFormat
constructor
A new instance of InvalidVersionFormat.
- #to_s ⇒ Object
Constructor Details
#initialize(version) ⇒ InvalidVersionFormat
Returns a new instance of InvalidVersionFormat.
8 9 10 |
# File 'lib/semverse/errors.rb', line 8 def initialize(version) @version = version end |
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/semverse/errors.rb', line 5 def version @version end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/semverse/errors.rb', line 12 def to_s "'#{version}' did not contain a valid version string: 'x.y.z' or 'x.y'." end |