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>

Returns options to pass to test runner.

Returns:

  • (Array<String>)

    options to pass to test runner



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

def doctest_opts
  @doctest_opts
end

#nameString

Returns the name of the task.

Returns:

  • (String)

    the name of the task



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

def name
  @name
end

#patternString

Returns list of files/dirs separated with space or glob.

Returns:

  • (String)

    list of files/dirs separated with space or glob



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

def pattern
  @pattern
end