class Solve::Dependency
def ==(other)
-
(Boolean)-
Parameters:
-
other(Object) --
def ==(other) other.is_a?(self.class) && name == other.name && artifact == other.artifact && constraint == other.constraint end
def initialize(artifact, name, constraint = Semverse::DEFAULT_CONSTRAINT)
-
constraint(Semverse::Constraint, #to_s) -- -
name(#to_s) -- -
artifact(Solve::Artifact) --
def initialize(artifact, name, constraint = Semverse::DEFAULT_CONSTRAINT) @artifact = artifact @name = name @constraint = Semverse::Constraint.coerce(constraint) end
def to_s
def to_s "#{name} (#{constraint})" end