Class: YARD::Doctest::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/yard/doctest/rake.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = 'yard:doctest') {|_self| ... } ⇒ RakeTask

Returns a new instance of RakeTask.

Yields:

  • (_self)

Yield Parameters:



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_optsObject

Returns the value of attribute doctest_opts.



9
10
11
# File 'lib/yard/doctest/rake.rb', line 9

def doctest_opts
  @doctest_opts
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/yard/doctest/rake.rb', line 8

def name
  @name
end

#patternObject

Returns the value of attribute pattern.



10
11
12
# File 'lib/yard/doctest/rake.rb', line 10

def pattern
  @pattern
end