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
      [:class, :both].include? types
    methods << load_method(store, :instance_methods, ancestor, '#',  method) if
      [:instance, :both].include? types
    found << [store, methods.compact]
  end
  found.reject do |path, methods| methods.empty? end
end