method

complete_method

v2_2_9 - Show latest stable - Class: RDoc::RI::Driver
complete_method(name, klass, selector, completions)
public

No documentation available.

# File lib/rdoc/ri/driver.rb, line 749
  def complete_method name, klass, selector, completions # :nodoc:
    if completions.include? klass and name =~ /#|\.|::/ then
      methods = list_methods_matching name

      if not methods.empty? then
        # remove Foo if given Foo:: and a method was found
        completions.delete klass
      elsif selector then
        # replace Foo with Foo:: as given
        completions.delete klass
        completions << "#{klass}#{selector}"
      end

      completions.concat methods
    end
  end