るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.028秒)

別のキーワード

  1. sax2parser listen
  2. rexml/parsers/sax2parser listen
  3. open3 popen2
  4. open3 popen2e
  5. socket iff_link2

ライブラリ

クラス

キーワード

検索結果

CGI.escape(string) -> String (18.0)

与えられた文字列を URL エンコードした文字列を新しく作成し返します。

...

例:
require "cgi"

p CGI.escape('@##') #=> "%40%23%23"

url = "http://www.example.com/register?url=" +
CGI.escape('http://www.example.com/index.rss')
p url
#=> "http://www.example.com/register?url=http%3A%2F%2Fwww.example.com%2Findex.rss"...

CGI.unescape(string) -> String (18.0)

与えられた文字列を URL デコードした文字列を新しく作成し返します。

...しく作成し返します。

@param string URL エンコードされている文字列を指定します。

require "cgi"

p CGI.unescape('%40%23%23') #=> "@##"

p CGI.unescape("http%3A%2F%2Fwww.example.com%2Findex.rss")
#=> "http://www.example.com/index.rss"...