Added help message for gem i webrick in rdoc

This commit is contained in:
Hiroshi SHIBATA 2020-12-10 16:20:21 +09:00
Родитель 4ccc66265c
Коммит e7433a3288
2 изменённых файлов: 13 добавлений и 2 удалений

Просмотреть файл

@ -1551,7 +1551,12 @@ or the PAGER environment variable.
# Starts a WEBrick server for ri.
def start_server
require 'webrick'
begin
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

Просмотреть файл

@ -3,7 +3,13 @@ require 'rdoc'
require 'erb'
require 'time'
require 'json'
require 'webrick'
begin
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.