Exception: Doubleshot::Resolver::GemResolver::Errors::InvalidVersionFormat
- Inherits:
-
Doubleshot::Resolver::GemResolverError
- Object
- StandardError
- Doubleshot::Resolver::GemResolverError
- Doubleshot::Resolver::GemResolver::Errors::InvalidVersionFormat
- Defined in:
- lib/doubleshot/resolver/gem_resolver/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.
- #message ⇒ Object
Constructor Details
#initialize(version) ⇒ InvalidVersionFormat
Returns a new instance of InvalidVersionFormat.
11 12 13 |
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 11 def initialize(version) @version = version end |
Instance Attribute Details
#version ⇒ Object (readonly)
Returns the value of attribute version.
8 9 10 |
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 8 def version @version end |
Instance Method Details
#message ⇒ Object
15 16 17 |
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 15 def "'#{version}' did not contain a valid version string: 'x.y.z' or 'x.y'." end |