lib/solve/constraint.rb
# Coerce the object into a constraint.
#
# @param [Constraint, String]
#
# @return [Constraint]
Coerce the object into a constraint.
Coerce the object into a constraint .
def coerce(object)
        if object.nil?
          Semverse::DEFAULT_CONSTRAINT
        else
          object.is_a?(self) ? object : new(object)
        end
      end
def coerce ( object ) if object . nil? Semverse :: DEFAULT_CONSTRAINT else object . is_a? ( self ) ? object : new ( object ) end end
Coerce the object into a constraint.
Coerce the object into a constraint .
None
Constraint
object
<not_specific>
<not_specific>
None