class Solve::Dependency

def ==(other)

Returns:
  • (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)

Parameters:
  • 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