module Attr::Gather::Workflow::Graphable::ClassMethods

Class methods for graph functionality

Public Instance Methods

tasks() click to toggle source

Returns the graph of tasks

@return [TaskGraph] the graph

@api private

# File lib/attr/gather/workflow/graphable.rb, line 17
def tasks
  @tasks ||= TaskGraph.new
end
to_dot(preview: true) click to toggle source

Returns a graphviz visualization of the workflow

@param preview [Boolean] show a preview image of the Workflow

@api public

# File lib/attr/gather/workflow/graphable.rb, line 26
def to_dot(preview: true)
  tasks.to_dot(preview: preview)
end