Class: RDoc::RI::Task
Overview
RDoc::RI::Task creates ri data in ./.rdoc for your project.
It contains the following tasks:
- ri
 - 
Build ri data
 - clobber_ri
 - 
Delete ri data files. This target is automatically added to the main clobber target.
 - reri
 - 
Rebuild the ri data from scratch even if they are not out of date.
 
Simple example:
require 'rdoc/ri/task'
RDoc::RI::Task.new do |ri|
  ri.main = 'README.rdoc'
  ri.rdoc_files.include 'README.rdoc', 'lib/**/*.rb'
end
For further configuration details see RDoc::Task.
Constant Summary collapse
- DEFAULT_NAMES =
          
:nodoc:
 { # :nodoc: :clobber_rdoc => :clobber_ri, :rdoc => :ri, :rerdoc => :reri, }
Instance Attribute Summary
Attributes inherited from Task
#external, #generator, #main, #markup, #name, #options, #rdoc_dir, #rdoc_files, #template, #title
Instance Method Summary collapse
- 
  
    
      #clobber_task_description  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 - 
  
    
      #defaults  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Sets default task values.
 - 
  
    
      #initialize(name = DEFAULT_NAMES)  ⇒ Task 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Create an ri task with the given name.
 - 
  
    
      #rdoc_task_description  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 - 
  
    
      #rerdoc_task_description  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
:nodoc:.
 
Methods inherited from Task
#before_running_rdoc, #check_names, #define, #inline_source, #inline_source=, #option_list
Constructor Details
#initialize(name = DEFAULT_NAMES) ⇒ Task
Create an ri task with the given name. See RDoc::Task for documentation on setting names.
      48 49 50  | 
    
      # File 'lib/rdoc/ri/task.rb', line 48 def initialize name = DEFAULT_NAMES # :yield: self super end  | 
  
Instance Method Details
#clobber_task_description ⇒ Object
:nodoc:
      52 53 54  | 
    
      # File 'lib/rdoc/ri/task.rb', line 52 def clobber_task_description # :nodoc: "Remove RI data files" end  | 
  
#defaults ⇒ Object
Sets default task values
      59 60 61 62 63  | 
    
      # File 'lib/rdoc/ri/task.rb', line 59 def defaults super @rdoc_dir = '.rdoc' end  | 
  
#rdoc_task_description ⇒ Object
:nodoc:
      65 66 67  | 
    
      # File 'lib/rdoc/ri/task.rb', line 65 def rdoc_task_description # :nodoc: 'Build RI data files' end  | 
  
#rerdoc_task_description ⇒ Object
:nodoc:
      69 70 71  | 
    
      # File 'lib/rdoc/ri/task.rb', line 69 def rerdoc_task_description # :nodoc: 'Rebuild RI data files' end  |