diff --git a/lib/yard/rake/yardoc_task.rb b/lib/yard/rake/yardoc_task.rb index e8a8c76db..0dcb5ae49 100644 --- a/lib/yard/rake/yardoc_task.rb +++ b/lib/yard/rake/yardoc_task.rb @@ -60,7 +60,7 @@ def initialize(name = :yard) # Defines the rake task # @return [void] def define - desc "Generate YARD Documentation" + desc "Generate YARD Documentation" unless ::Rake.application.last_comment task(name) do before.call if before.is_a?(Proc) yardoc = YARD::CLI::Yardoc.new