Class: YARD::Doctest::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- YARD::Doctest::RakeTask
- Defined in:
- lib/yard/doctest/rake.rb
Instance Attribute Summary collapse
-
#doctest_opts ⇒ Array<String>
Options to pass to test runner.
-
#name ⇒ String
The name of the task.
-
#pattern ⇒ String
List of files/dirs separated with space or glob.
Instance Method Summary collapse
-
#initialize(name = 'yard:doctest') {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name = 'yard:doctest') {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
17 18 19 20 21 22 23 24 25 |
# File 'lib/yard/doctest/rake.rb', line 17 def initialize(name = 'yard:doctest') @name = name @doctest_opts = [] @pattern = '' yield self if block_given? define end |
Instance Attribute Details
#doctest_opts ⇒ Array<String>
Returns options to pass to test runner.
12 13 14 |
# File 'lib/yard/doctest/rake.rb', line 12 def doctest_opts @doctest_opts end |
#name ⇒ String
Returns the name of the task.
9 10 11 |
# File 'lib/yard/doctest/rake.rb', line 9 def name @name end |
#pattern ⇒ String
Returns list of files/dirs separated with space or glob.
15 16 17 |
# File 'lib/yard/doctest/rake.rb', line 15 def pattern @pattern end |