127件ヒット
[101-127件を表示]
(0.015秒)
種類
- 特異メソッド (83)
- インスタンスメソッド (22)
- 定数 (11)
- クラス (11)
クラス
-
URI
:: Generic (44)
モジュール
- URI (72)
キーワード
- COMPONENT (11)
- InvalidComponentError (11)
- decode (7)
-
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) - encode (7)
-
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) - escape (7)
- select (11)
- unescape (7)
検索結果
先頭3件
-
URI
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (17032.0) -
文字列から URL-encoded form data をデコードします。
...されています。
そのため「&」区切りのみに対応していて、「;」区切りには対応していません。
require 'uri'
ary = URI.decode_www_form("a=1&a=2&b=3")
p ary #=> [['a', '1'], ['a', '2'], ['b', '3']]
p ary.assoc('a').last #=> '1'
p ary.ass......assoc('a').last #=> '2'
p Hash[ary] # => {"a"=>"2", "b"=>"3"}
@param str デコード対象の文字列
@param enc エンコーディング
@raise ArgumentError str のフォーマットが不正である場合に発生します
@see URI.decode_www_form_component, URI.encode_www_form... -
URI
:: InvalidComponentError (17002.0) -
不正な構成要素を指定したときに発生します。
不正な構成要素を指定したときに発生します。 -
URI
:: Generic # select(*components) -> [String] (11126.0) -
指定された components に対応する構成要素を文字列の配列として返します。
...指定された components に対応する構成要素を文字列の配列として返します。
@param components 構成要素名をシンボルで指定します。
例:
require 'uri'
uri = URI.parse('http://myuser:mypass@my.example.com/test.rbx')
p uri.select(:userinfo, :host, :pat...