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
@ -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
|
||||||
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
|
server = WEBrick::HTTPServer.new :Port => @server
|
||||||
|
|
||||||
|
@ -3,7 +3,13 @@ require 'rdoc'
|
|||||||
require 'erb'
|
require 'erb'
|
||||||
require 'time'
|
require 'time'
|
||||||
require 'json'
|
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.
|
# This is a WEBrick servlet that allows you to browse ri documentation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user