begin require 'yard' rescue LoadError $stderr.puts 'You need to install the "yard"-gem to make that rake task work.' exit 1 end YARD::Rake::YardocTask.new() do |y| # y.options << '--verbose' end