48件ヒット
[1-48件を表示]
(0.038秒)
ライブラリ
- erb (12)
- optparse (12)
-
webrick
/ httputils (24)
クラス
- ERB (12)
- OptionParser (12)
-
WEBrick
:: HTTPUtils :: FormData (24)
検索結果
先頭4件
-
WEBrick
:: HTTPUtils :: FormData # name=(value) (15108.0) -
フォームデータの name 属性を文字列で表すアクセサです。
...ータの name 属性を文字列で表すアクセサです。
@param value フォームデータの name 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].name #=> "q"
end
end
MyCGI.new.start()... -
ERB
# filename= -> String (6208.0) -
エラーメッセージを表示する際のファイル名を設定します。
...filename を設定していない場合は、エラー発生箇所は「 (ERB) 」という出力となります。
//emlist[例][ruby]{
require 'erb'
filename = 'example.rhtml'
erb = ERB.new(File.read(filename))
erb.filename # => nil
erb.filename = filename
erb.filename # =>"example.rhtml"
//}... -
WEBrick
:: HTTPUtils :: FormData # filename=(value) (3108.0) -
フォームデータの filename 属性を文字列で表すアクセサです。
...me 属性を文字列で表すアクセサです。
@param value フォームデータの filename 属性を文字列で指定します。
例:
require "webrick/cgi"
class MyCGI < WEBrick::CGI
def do_GET(req, res)
p req.query['q'].filename #=> "my_file.txt"
end
end
MyCGI.new.star... -
OptionParser
# ver -> String (114.0) -
program_name、version と release から生成したバージョンを表す文字列を返します。
...e から生成したバージョンを表す文字列を返します。
//emlist[例][ruby]{
require "optparse"
OptionParser.new do |opts|
opts.banner = "Usage: example.rb [options]"
opts.program_name = "Optparse Example"
opts.version = [0, 1]
opts.release = "2019-05-01"
opts.on_tail("-...