Method: Roby::Queries::TaskMatcher#add_neg_plan_predicate
- Defined in:
- lib/roby/queries/task_matcher.rb
#add_neg_plan_predicate(predicate) ⇒ Object
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.
Helper to add a plan predicate in the match set
369 370 371 372 373 374 375 376 377 378 |
# File 'lib/roby/queries/task_matcher.rb', line 369 def add_neg_plan_predicate(predicate) if !PLAN_PREDICATES.key?(predicate) raise ArgumentError, "unknown plan predicate #{predicate}" elsif @plan_predicates.include?(predicate) raise ArgumentError, "trying to match #{predicate} & not_#{predicate}" end @neg_plan_predicates << predicate self end |