Class: YARD::Rake::YardocTask
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Rake::TaskLib
|
|
Instance Chain:
self,
Rake::TaskLib
|
|
Inherits: |
Rake::TaskLib
|
Defined in: | lib/yard/rake/yardoc_task.rb |
Overview
The rake task to run ::YARD::CLI::Yardoc
and generate documentation.
Class Method Summary
-
.new(name = :yard) {|_self| ... } ⇒ YardocTask
constructor
Creates a new task with name #name.
Instance Attribute Summary
-
#after ⇒ Proc
rw
Runs a
Proc
after the task. -
#before ⇒ Proc
rw
Runs a
Proc
before the task. -
#files ⇒ Array<String>
rw
The Ruby source files (and any extra documentation files separated by '-') to process.
-
#name ⇒ String
rw
The name of the task.
-
#options ⇒ Array<String>
rw
::YARD::Options
to pass to::YARD::CLI::Yardoc
-
#stats_options ⇒ Array<String>
rw
::YARD::Options
to pass to::YARD::CLI::Stats
- #verifier ⇒ Verifier, Proc rw
Constructor Details
.new(name = :yard) {|_self| ... } ⇒ YardocTask
Creates a new task with name #name.
# File 'lib/yard/rake/yardoc_task.rb', line 50
def initialize(name = :yard) @name = name @options = [] @stats_options = [] @files = [] yield self if block_given? self. += ENV['OPTS'].split(/[ ,]/) if ENV['OPTS'] self.files += ENV['FILES'].split(/[ ,]/) if ENV['FILES'] self. << '--no-stats' unless .empty? define end
Instance Attribute Details
#after ⇒ Proc
(rw)
Runs a Proc
after the task
# File 'lib/yard/rake/yardoc_task.rb', line 36
attr_accessor :after
#before ⇒ Proc
(rw)
Runs a Proc
before the task
# File 'lib/yard/rake/yardoc_task.rb', line 32
attr_accessor :before
#files ⇒ Array<String> (rw)
The Ruby source files (and any extra documentation files separated by '-') to process.
# File 'lib/yard/rake/yardoc_task.rb', line 28
attr_accessor :files
#name ⇒ String (rw)
The name of the task
# File 'lib/yard/rake/yardoc_task.rb', line 11
attr_accessor :name
#options ⇒ Array<String> (rw)
::YARD::Options
to pass to ::YARD::CLI::Yardoc
# File 'lib/yard/rake/yardoc_task.rb', line 15
attr_accessor :
#stats_options ⇒ Array<String> (rw)
::YARD::Options
to pass to ::YARD::CLI::Stats
# File 'lib/yard/rake/yardoc_task.rb', line 19
attr_accessor :
#verifier ⇒ Verifier, Proc
(rw)
# File 'lib/yard/rake/yardoc_task.rb', line 42
attr_accessor :verifier