Module: Solve
- Defined in:
- lib/solve.rb,
lib/solve/graph.rb,
lib/solve/demand.rb,
lib/solve/errors.rb,
lib/solve/solver.rb,
lib/solve/artifact.rb,
lib/solve/constraint.rb,
lib/solve/dependency.rb,
lib/solve/gem_version.rb,
lib/solve/solver/serializer.rb
Defined Under Namespace
Modules: Errors Classes: Artifact, Constraint, Demand, Dependency, Graph, Solver
Constant Summary collapse
- VERSION =
"1.1.0"
Class Attribute Summary collapse
- .tracer ⇒ Solve::Formatter readonly
Class Method Summary collapse
-
.it!(graph, demands, options = {}) ⇒ Hash
A quick solve.
Class Attribute Details
.tracer ⇒ Solve::Formatter (readonly)
14 15 16 |
# File 'lib/solve.rb', line 14 def tracer @tracer end |
Class Method Details
.it!(graph, demands, options = {}) ⇒ Hash
A quick solve. Given the “world” as we know it (the graph) and a list of requirements (demands) which must be met. Return me the best solution of artifacts and verisons that I should use.
If a ui object is passed in, the resolution will be traced
33 34 35 |
# File 'lib/solve.rb', line 33 def it!(graph, demands, = {}) Solver.new(graph, demands, [:ui]).resolve() end |