class Molinillo::Resolver::Resolution
def parent_of(requirement)
-
(Object)
- the requirement that led to `requirement` being added
def parent_of(requirement) return nil unless requirement seen = false state = states.reverse_each.find do |s| seen ||= s.requirement == requirement || s.requirements.include?(requirement) seen && s.requirement != requirement && !s.requirements.include?(requirement) end state && state.requirement end