Class: RI::RiCache
- Inherits:
-
Object
- Object
- RI::RiCache
- Defined in:
- lib/rdoc/ri/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) ⇒ RiCache
constructor
A new instance of RiCache.
Constructor Details
#initialize(dirs) ⇒ RiCache
Returns a new instance of RiCache.
176 177 178 179 180 181 182 183 184 |
# File 'lib/rdoc/ri/ri_cache.rb', line 176 def initialize(dirs) # At the top level we have a dummy module holding the # overall namespace @toplevel = 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
174 175 176 |
# File 'lib/rdoc/ri/ri_cache.rb', line 174 def toplevel @toplevel end |