Class FastRI::NameDescriptor
In: lib/fastri/name_descriptor.rb
Parent: Object

Alternative NameDescriptor implementation which doesn‘t require class/module names to be properly capitalized.

Rules:

  • foo: instance method foo
  • .foo: method foo (either singleton or instance)
  • ::foo: singleton method foo
  • foo::bar#bar<tt>: instance method bar under <tt>foo::bar
  • foo::bar.bar<tt>: either singleton or instance method bar under <tt>foo::bar
  • <tt>foo::bar::Baz<tt>: module/class foo:bar::Baz
  • foo::bar::baz: singleton method baz from foo::bar
  • other: raise RiError

Methods

Attributes

class_names  [R] 
is_class_method  [R]  true and false have the obvious meaning. nil means we don‘t care
method_name  [R] 

Public Class methods

Public Instance methods

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

[Validate]