method
new
v1_9_1_378 -
Show latest stable
-
0 notes -
Class: NameDescriptor
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
new(arg)
public
arg may be
-
A class or module name (optionally qualified with other class or module
names (Kernel, File::Stat etc)
-
A method name
-
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