class RDoc::Context

def methods_matching(methods, singleton = false)

def methods_matching(methods, singleton = false)
  count = 0
  @method_list.each do |m|
    if methods.include? m.name and m.singleton == singleton then
      yield m
      count += 1
    end
  end
  return if count == methods.size || singleton
  @attributes.each do |a|
    yield a if methods.include? a.name
  end
end