Class: RDocF95::RI::Cache

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

Instance Method Summary collapse

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

#toplevelObject (readonly)

Returns the value of attribute toplevel.



175
176
177
# File 'lib/rdoc-f95/ri/cache.rb', line 175

def toplevel
  @toplevel
end