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
-
#tasks ⇒ TaskGraph
private
Returns the graph of tasks.
-
#to_dot(preview: true) ⇒ Object
Returns a graphviz visualization of the workflow.
Instance Method Details
#tasks ⇒ TaskGraph
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
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
26 27 28 |
# File 'lib/attr/gather/workflow/graphable.rb', line 26 def to_dot(preview: true) tasks.to_dot(preview: preview) end |