01 - automatically generating documentation.rb
来自「O Reilly Ruby Cookbook source code」· RB 代码 · 共 29 行
RB
29 行
require 'rake/rdoctask'Rake::RDocTask.new('rdoc') do |t| t.rdoc_files.include('README', 'lib/**/*.rb') t.main = 'README' t.title = "MyLib API documentation"end#---require 'rake/rdoctask'Rake::RDocTask.new('rdoc') do |t| t.rdoc_files.include('README', 'lib/**/*.rb') t.main = 'README' t.title = "MyLib API documentation"enddesc 'Upload documentation to RubyForge.'task 'upload' => 'rdoc' do # command(s) to upload html/ and contents to RubyForgeenddesc 'Remove generated and backup files.'task 'clobber' => 'clobber_rdoc' do # command(s) to remove all files ending in ~ or .bakend#---task :default => ['rdoc']#---
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?