Class: RDocF95::RI::Cache
- Inherits:
-
Object
- Object
- RDocF95::RI::Cache
- Defined in:
- lib/rdoc-f95/ri/cache.rb
Overview
We represent everything know about all ‘ri’ files accessible to this program
Instance Attribute Summary collapse
-
#toplevel ⇒ Object
readonly
Returns the value of attribute toplevel.
Instance Method Summary collapse
-
#initialize(dirs) ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize(dirs) ⇒ Cache
Returns a new instance of Cache.
177 178 179 180 181 182 183 184 185 |
# File 'lib/rdoc-f95/ri/cache.rb', line 177 def initialize(dirs) # At the top level we have a dummy module holding the # overall namespace @toplevel = RDocF95::RI::TopLevelEntry.new('', '::', nil) dirs.each do |dir| @toplevel.load_from(dir) end end |
Instance Attribute Details
#toplevel ⇒ Object (readonly)
Returns the value of attribute toplevel.
175 176 177 |
# File 'lib/rdoc-f95/ri/cache.rb', line 175 def toplevel @toplevel end |