Method: Roby::Queries::TaskMatcher#each_in_plan

Defined in:
lib/roby/queries/task_matcher.rb

#each_in_plan(plan, &block) ⇒ Object

Enumerate the objects matching self in the plan

This resolves the query only the first time. After the first call, the same set of tasks will be returned. Use MatcherBase#reset to clear the cached results.



585
586
587
588
589
# File 'lib/roby/queries/task_matcher.rb', line 585

def each_in_plan(plan, &block)
    return enum_for(__method__, plan) unless block_given?

    evaluate(plan).each_in_plan(plan, &block)
end