📄 01 - automatically generating documentation.rb
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -