mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added help message for gem i webrick in rdoc
This commit is contained in:
parent
4ccc66265c
commit
e7433a3288
Notes:
git
2020-12-10 18:06:55 +09:00
2 changed files with 13 additions and 2 deletions
|
@ -1551,7 +1551,12 @@ or the PAGER environment variable.
|
||||||
# Starts a WEBrick server for ri.
|
# Starts a WEBrick server for ri.
|
||||||
|
|
||||||
def start_server
|
def start_server
|
||||||
|
begin
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
|
rescue LoadError
|
||||||
|
puts "webrick is not found. You may need to `gem install webrick` to install webrick."
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
server = WEBrick::HTTPServer.new :Port => @server
|
server = WEBrick::HTTPServer.new :Port => @server
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,13 @@ require 'rdoc'
|
||||||
require 'erb'
|
require 'erb'
|
||||||
require 'time'
|
require 'time'
|
||||||
require 'json'
|
require 'json'
|
||||||
|
|
||||||
|
begin
|
||||||
require 'webrick'
|
require 'webrick'
|
||||||
|
rescue LoadError
|
||||||
|
puts "webrick is not found. You may need to `gem install webrick` to install webrick."
|
||||||
|
exit
|
||||||
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# This is a WEBrick servlet that allows you to browse ri documentation.
|
# This is a WEBrick servlet that allows you to browse ri documentation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue