Module: Attr::Gather::Workflow::Graphable::ClassMethods

Included in:
Attr::Gather::Workflow
Defined in:
lib/attr/gather/workflow/graphable.rb

Overview

Class methods for graph functionality

Instance Method Summary collapse

Instance Method Details

#tasksTaskGraph

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the graph of tasks

Returns:



17
18
19
# File 'lib/attr/gather/workflow/graphable.rb', line 17

def tasks
  @tasks ||= TaskGraph.new
end

#to_dot(preview: true) ⇒ Object

Returns a graphviz visualization of the workflow

Parameters:

  • preview (Boolean) (defaults to: true)

    show a preview image of the Workflow



26
27
28
# File 'lib/attr/gather/workflow/graphable.rb', line 26

def to_dot(preview: true)
  tasks.to_dot(preview: preview)
end