Class Generators::AllReferences
In: rdoc/generators/html_generator.rb
Parent: Object

Build a hash of all items that can be cross-referenced. This is used when we output required and included names: if the names appear in this hash, we can generate an html cross reference to the appropriate description. We also use this when parsing comment blocks: any decorated words matching an entry in this list are hyperlinked.

Methods

[]   add   keys   reset  

Public Class methods

[Source]

# File rdoc/generators/html_generator.rb, line 73
    def AllReferences.[](name)
      @@refs[name]
    end

[Source]

# File rdoc/generators/html_generator.rb, line 69
    def AllReferences.add(name, html_class)
      @@refs[name] = html_class
    end

[Source]

# File rdoc/generators/html_generator.rb, line 77
    def AllReferences.keys
      @@refs.keys
    end

[Source]

# File rdoc/generators/html_generator.rb, line 65
    def AllReferences::reset
      @@refs = {}
    end

[Validate]

ruby-doc.org is a service of James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.