Class: RDocF95::Generator::AllReferences

Inherits:
Object
  • Object
show all
Defined in:
lib/rdoc-f95/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



64
65
66
# File 'lib/rdoc-f95/generator.rb', line 64

def AllReferences.[](name)
  @@refs[name]
end

.add(name, html_class) ⇒ Object



60
61
62
# File 'lib/rdoc-f95/generator.rb', line 60

def AllReferences.add(name, html_class)
  @@refs[name] = html_class
end

.keysObject



68
69
70
# File 'lib/rdoc-f95/generator.rb', line 68

def AllReferences.keys
  @@refs.keys
end

.resetObject



56
57
58
# File 'lib/rdoc-f95/generator.rb', line 56

def AllReferences::reset
  @@refs = {}
end