Method: RDoc::Context#methods_matching

Defined in:
lib/rdoc/code_object/context.rb

#methods_matching(methods, singleton = false, &block) ⇒ Object

Yields AnyMethod and Attr entries matching the list of names in methods.



1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/rdoc/code_object/context.rb', line 1038

def methods_matching(methods, singleton = false, &block)
  (@method_list + @attributes).each do |m|
    yield m if methods.include?(m.name) and m.singleton == singleton
  end

  each_ancestor do |parent|
    parent.methods_matching(methods, singleton, &block)
  end
end