Class: Generators::AllReferences
- Inherits:
-
Object
- Object
- Generators::AllReferences
- Defined in:
- lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb,
lib/generators/templates/application/merb_stack/doc/rdoc/generators/merb_generator.rb
Overview
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.
Constant Summary collapse
- @@refs =
{}
Class Method Summary collapse
Class Method Details
.[](name) ⇒ Object
69 70 71 |
# File 'lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb', line 69 def AllReferences.[](name) @@refs[name] end |
.add(name, html_class) ⇒ Object
65 66 67 |
# File 'lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb', line 65 def AllReferences.add(name, html_class) @@refs[name] = html_class end |
.keys ⇒ Object
73 74 75 |
# File 'lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb', line 73 def AllReferences.keys @@refs.keys end |
.reset ⇒ Object
61 62 63 |
# File 'lib/generators/templates/application/merb_core/doc/rdoc/generators/merb_generator.rb', line 61 def AllReferences::reset @@refs = {} end |