Method: Roby::TaskMatcher.declare_class_methods

Defined in:
lib/roby/query.rb

.declare_class_methods(*names) ⇒ Object

:nodoc:



96
97
98
99
100
101
102
103
# File 'lib/roby/query.rb', line 96

def declare_class_methods(*names) # :nodoc:
    names.each do |name|
 raise "no instance method #{name} on TaskMatcher" unless TaskMatcher.method_defined?(name)
 TaskMatcher.singleton_class.send(:define_method, name) do |*args|
      TaskMatcher.new.send(name, *args)
 end
    end
end