class RDoc::RI::Driver

def load_methods_matching name

def load_methods_matching name
  found = []
  find_methods name do |store, klass, ancestor, types, method|
    methods = []
    methods << load_method(store, :class_methods, ancestor, '::',  method) if
      types == :class or types == :both
    methods << load_method(store, :instance_methods, ancestor, '#',  method) if
      types == :instance or types == :both
    found << [store, methods.compact]
  end
  found.reject do |path, methods| methods.empty? end
end