method
new
v1_9_1_378 -
Show latest stable
-
0 notes -
Class: Driver
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (38)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (0)
- 2_2_9 (0)
- 2_4_6
- 2_5_5
- 2_6_3
- What's this?
new(initial_options={})
public
Hide source
# File lib/rdoc/ri/driver.rb, line 303 def initialize(initial_options={}) options = self.class.default_options.update(initial_options) @names = options[:names] @class_cache_name = 'classes' @doc_dirs = RDoc::RI::Paths.path(options[:use_system], options[:use_site], options[:use_home], options[:use_gems], options[:extra_doc_dirs]) @homepath = RDoc::RI::Paths.raw_path(false, false, true, false).first @homepath = @homepath.sub(/\.rdoc/, '.ri') @sys_dir = RDoc::RI::Paths.raw_path(true, false, false, false).first @list_doc_dirs = options[:list_doc_dirs] FileUtils.mkdir_p cache_file_path unless File.directory? cache_file_path @cache_doc_dirs_path = File.join cache_file_path, ".doc_dirs" @use_cache = options[:use_cache] @class_cache = nil @interactive = options[:interactive] @display = RDoc::RI::DefaultDisplay.new(options[:formatter], options[:width], options[:use_stdout]) end