Method: Gem::Molinillo::DependencyGraph::Log#add_vertex

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

#add_vertex(graph, name, payload, root) ⇒ Vertex

Parameters:

  • graph (Graph)

    the graph to perform the action on

  • name (String)
  • payload (Object)

Returns:

  • (Vertex)

    the vertex that was added to ‘self`



31
32
33
# File 'lib/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb', line 31

def add_vertex(graph, name, payload, root)
  push_action(graph, AddVertex.new(name, payload, root))
end