Class: RI::RiCache

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#toplevelObject (readonly)

Returns the value of attribute toplevel



174
175
176
# File 'lib/rdoc/ri/ri_cache.rb', line 174

def toplevel
  @toplevel
end