Ruby 2.7.0 リファレンスマニュアル > ライブラリ一覧 > webrick/httpservlet/cgihandlerライブラリ > WEBrick::HTTPServlet::CGIHandlerクラス > new

singleton method WEBrick::HTTPServlet::CGIHandler.new

new(server, name) -> WEBrick::HTTPServlet::CGIHandler[permalink][rdoc]

自身を初期化します。

[PARAM] server:
WEBrick::GenericServer のサブクラスのインスタンスを指定します。
[PARAM] name:
実行したい CGI のファイルを文字列で与えます。