class RakeFlowVisualizer::Task
Attributes
dependencies[R]
name[R]
Public Class Methods
all()
click to toggle source
# File lib/rake_flow_visualizer/task.rb, line 16 def self.all @tasks ||= [] end
find_or_create(name)
click to toggle source
# File lib/rake_flow_visualizer/task.rb, line 4 def self.find_or_create(name) @tasks ||= [] existing_task = @tasks.find { |task| task.name == name } if existing_task existing_task else new_task = new(name) @tasks << new_task new_task end end
new(name)
click to toggle source
# File lib/rake_flow_visualizer/task.rb, line 22 def initialize(name) @name = name @dependencies = [] end
Public Instance Methods
to_s()
click to toggle source
# File lib/rake_flow_visualizer/task.rb, line 27 def to_s @name end