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:


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_optsArray<String>


12
13
14
# File 'lib/yard/doctest/rake.rb', line 12

def doctest_opts
  @doctest_opts
end

#nameString


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

def name
  @name
end

#patternString


15
16
17
# File 'lib/yard/doctest/rake.rb', line 15

def pattern
  @pattern
end