method

new

ruby latest stable - Class: RDoc::RI::NameDescriptor

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

new(arg)
public

arg may be

  1. A class or module name (optionally qualified with other class or module

names (Kernel, File::Stat etc)
  1. A method name

  2. A method name qualified by a optionally fully qualified class or module

name

We’re fairly casual about delimiters: folks can say Kernel::puts, Kernel.puts, or Kernel#puts for example. There’s one exception: if you say IO::read, we look for a class method, but if you say IO.read, we look for an instance method