class Roby::Tasks::Group
Public Class Methods
new(*tasks)
click to toggle source
Calls superclass method
Roby::Task::new
# File lib/roby/tasks/group.rb, line 3 def initialize(*tasks) super() if tasks.empty? || tasks.first.kind_of?(Hash) return end success = Roby::AndGenerator.new tasks.each do |task| depends_on task task.event(:success).signals success end success.forward_to event(:success) end