require "rdoc/task" task default: [:rdoc] Rake::RDocTask.new do |rdoc| rdoc.rdoc_dir = "rdoc" rdoc.title = "rdoc" rdoc.options << "--line-numbers" << "--inline-source" rdoc.rdoc_files.include("**/*.rb") end