Method: Roby::Queries::TaskMatcher#which_fullfills
- Defined in:
- lib/roby/queries/task_matcher.rb
#which_fullfills(model, arguments = nil) ⇒ Object
Filters on task model and arguments
Will match if the task is an instance of model
or one of its subclasses, and if parts of its arguments are the ones provided. Set arguments
to nil if you don’t want to filter on arguments.
65 66 67 68 69 |
# File 'lib/roby/queries/task_matcher.rb', line 65 def which_fullfills(model, arguments = nil) with_model(model) with_model_arguments(arguments) if arguments self end |