Yields Method and Attr entries matching the list of names in
methods. Attributes are only returned when singleton is
false.
# File lib/rdoc/context.rb, line 678
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