class YARD::Doctest::RakeTask
Attributes
doctest_opts[RW]
@return [Array<String>] options to pass to test runner
name[RW]
@return [String] the name of the task
pattern[RW]
@return [String] list of files/dirs separated with space or glob
Public Class Methods
new(name = 'yard:doctest') { |self| ... }
click to toggle source
# 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
Protected Instance Methods
define()
click to toggle source
# File lib/yard/doctest/rake.rb, line 29 def define desc 'Run YARD doctests' task(name) do command = "yard doctest #{(doctest_opts << pattern).join(' ')}" exit system(command) end end