Exception: Doubleshot::Resolver::GemResolver::Errors::InvalidConstraintFormat

Inherits:
Doubleshot::Resolver::GemResolverError show all
Defined in:
lib/doubleshot/resolver/gem_resolver/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(constraint) ⇒ InvalidConstraintFormat

Returns a new instance of InvalidConstraintFormat.

Parameters:

  • constraint (#to_s)


24
25
26
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 24

def initialize(constraint)
  @constraint = constraint
end

Instance Attribute Details

#constraintObject (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

#messageObject



28
29
30
# File 'lib/doubleshot/resolver/gem_resolver/errors.rb', line 28

def message
  "'#{constraint}' did not contain a valid operator or a valid version string."
end