Exception: Doubleshot::Resolver::GemResolver::Errors::InvalidConstraintFormat
- Inherits:
-
Doubleshot::Resolver::GemResolverError
- Object
- StandardError
- Doubleshot::Resolver::GemResolverError
- Doubleshot::Resolver::GemResolver::Errors::InvalidConstraintFormat
- Defined in:
- lib/doubleshot/resolver/gem_resolver/errors.rb
Instance Attribute Summary collapse
-
#constraint ⇒ Object
readonly
Returns the value of attribute constraint.
Instance Method Summary collapse
-
#initialize(constraint) ⇒ InvalidConstraintFormat
constructor
A new instance of InvalidConstraintFormat.
- #message ⇒ Object
Constructor Details
#initialize(constraint) ⇒ InvalidConstraintFormat
Returns a new instance of InvalidConstraintFormat.
24 25 26 |
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 24 def initialize(constraint) @constraint = constraint end |
Instance Attribute Details
#constraint ⇒ Object (readonly)
Returns the value of attribute constraint.
21 22 23 |
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 21 def constraint @constraint end |
Instance Method Details
#message ⇒ Object
28 29 30 |
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 28 def "'#{constraint}' did not contain a valid operator or a valid version string." end |