Method: RiManager#initialize

Defined in:
lib/RiManager.rb

#initialize(display, path = RI::Paths::PATH) ⇒ RiManager

Returns a new instance of RiManager.



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/RiManager.rb', line 37

def initialize(display, path = RI::Paths::PATH)
  # See if search_paths exists, if so, append it to path
  begin 
    path << $cfg.search_paths.split(';')
  rescue
  end
  @reader = RI::RiReader.new(RI::RiCache.new(path))
  @display = display
  @display.reader = @reader
  # prepare all names
  @all_names = prepare_all_names
end