66件ヒット
[1-66件を表示]
(0.120秒)
ライブラリ
-
net
/ http (22) - optparse (22)
-
rexml
/ parsers / pullparser (22)
クラス
- OptionParser (22)
-
REXML
:: Parsers :: PullEvent (22)
モジュール
-
Net
:: HTTPHeader (22)
検索結果
先頭5件
-
REXML
:: Parsers :: PullEvent # [](nth) -> object (21201.0) -
イベントのパラメータを取り出します。
...イベントのパラメータを取り出します。
Array#[] と同様の引数を取ります。
@param nth nth番目のイベントパラメータを取り出します
@param start start番目から len 個のイベントを取り出します
@param len start番目から len 個のイベン... -
REXML
:: Parsers :: PullEvent # [](start , len) -> [object] (21201.0) -
イベントのパラメータを取り出します。
...イベントのパラメータを取り出します。
Array#[] と同様の引数を取ります。
@param nth nth番目のイベントパラメータを取り出します
@param start start番目から len 個のイベントを取り出します
@param len start番目から len 個のイベン... -
Net
:: HTTPHeader # [](key) -> String|nil (18219.0) -
key ヘッダフィールドを返します。
...ー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['user-agent'] # =>......存在する
場合にはそれを全て ", " で連結した文字列を返します。
key は大文字小文字を区別しません。
@param key ヘッダフィール名を文字列で与えます。
@see Net::HTTPHeader#[]=,
Net::HTTPHeader#add_field,
Net::HTTPHeader#get_fields... -
Net
:: HTTPHeader # []=(key , val) (6125.0) -
key ヘッダフィールドに文字列 val をセットします。
.../emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req['user-agent'] # => Ruby
req['user-agent'] = "update"
req['user-agent'] # => update
//}
@see Net::HTTPHeader#[] ,
Net::HTTPHeader#add_field,
Net::HTTPH... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) -> () (3239.0) -
サマリを指定された to へと加えていきます。
...optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n......", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}... -
OptionParser
# summarize(to = [] , width = self . summary _ width , max = width - 1 , indent= self . summary _ indent) {|line| . . . } -> () (3239.0) -
サマリを指定された to へと加えていきます。
...optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
opts.summarize
# => [" -i, --init\n", " -u, --update\n", " -h, --help\n"]
opts.summarize(["description\n"], 10, 8, " ")
# => ["description\n", " -i\n......", " --init\n", " -u\n", " --update\n", " -h\n", " --help\n"]
//}...