Method: Gem::Molinillo::DependencyGraph::Vertex#ancestor?

Defined in:
lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb

#ancestor?(other) ⇒ Boolean Also known as: is_reachable_from?

Is there a path from ‘other` to `self` following edges in the dependency graph?

Returns:

  • (Boolean)

    whether there is a path following edges within this #graph



151
152
153
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb', line 151

def ancestor?(other)
  other.path_to?(self)
end