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 ⇒ Object
Returns the value of attribute doctest_opts.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
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.
12 13 14 15 16 17 18 19 20 |
# File 'lib/yard/doctest/rake.rb', line 12 def initialize(name = 'yard:doctest') @name = name @doctest_opts = [] @pattern = '' yield self if block_given? define end |
Instance Attribute Details
#doctest_opts ⇒ Object
Returns the value of attribute doctest_opts.
9 10 11 |
# File 'lib/yard/doctest/rake.rb', line 9 def doctest_opts @doctest_opts end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/yard/doctest/rake.rb', line 8 def name @name end |
#pattern ⇒ Object
Returns the value of attribute pattern.
10 11 12 |
# File 'lib/yard/doctest/rake.rb', line 10 def pattern @pattern end |