Class

NameDescriptor

Inheritance
< Object

Break argument into its constituent class or module names, an optional method type, and a method name

Attributes

Name Visibility R/W Description
class_names public R
is_class_method public R true and false have the obvious meaning. nil means we don‘t care
method_name public R

Methods

Class

Visibility Signature
public new (arg)

Instance

Visibility Signature
public full_class_name ()

Class Method Detail

new(arg)

arg may be

  1. a class or module name (optionally qualified with other class or module names (Kernel, File::Stat etc)
  2. a method name
  3. 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

Instance Method Detail

full_class_name()

Return the full class name (with ’::’ between the components) or "" if there‘s no class name