Method: RDoc::RI::Driver#map_dirs
- Defined in:
- lib/rdoc/ri/driver.rb
#map_dirs(file_name, system = false) ⇒ Object
307 308 309 310 311 312 313 314 315 316 317 318 319 |
# File 'lib/rdoc/ri/driver.rb', line 307 def map_dirs(file_name, system=false) dirs = if system == :all then @all_dirs else if system then @sys_dirs else @all_dirs - @sys_dirs end end dirs.map { |dir| yield File.join(dir, file_name) }.flatten.compact end |