588件ヒット
[201-300件を表示]
(0.042秒)
種類
- インスタンスメソッド (322)
- 特異メソッド (127)
- モジュール関数 (110)
- 文書 (18)
- ライブラリ (11)
ライブラリ
クラス
-
Net
:: FTP (55) -
Net
:: HTTPResponse (11) -
Net
:: IMAP (22) -
Net
:: IMAP :: ResponseCode (11) -
RDoc
:: CodeObject (33) - Refinement (3)
- Regexp (22)
- String (140)
- StringIO (36)
-
URI
:: FTP (11) - WIN32OLE (11)
モジュール
- Base64 (66)
-
CGI
:: HtmlExtension (22) - Digest (11)
-
ERB
:: Util (11) - Kconv (11)
- URI (72)
-
WEBrick
:: HTTPStatus (11)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Ruby用語集 (11)
- codepage (11)
- codepoints (36)
- comment (11)
- compile (11)
- decode (7)
- decode64 (11)
-
decode
_ utf7 (11) -
decode
_ www _ form (11) -
decode
_ www _ form _ component (11) -
each
_ codepoint (44) - encode (40)
- encode! (22)
- encode64 (11)
-
encode
_ utf7 (11) -
encode
_ www _ form (11) -
encode
_ www _ form _ component (11) - escape (7)
- form (22)
- hexencode (11)
-
import
_ methods (3) - kconv (33)
-
last
_ response (11) -
last
_ response _ code (11) - lastresp (11)
- name (11)
- new (11)
-
parent
_ file _ name (11) -
parent
_ name (11) -
reason
_ phrase (11) -
return
_ code (11) -
return
_ code= (11) -
strict
_ decode64 (11) -
strict
_ encode64 (11) - typecode (11)
- unescape (7)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) -
url
_ encode (11) -
urlsafe
_ decode64 (11) -
urlsafe
_ encode64 (11)
検索結果
先頭5件
-
URI
. decode _ www _ form(str , enc=Encoding :: UTF _ 8) -> [[String , String]] (6302.0) -
文字列から URL-encoded form data をデコードします。
...文字列から URL-encoded form data をデコードします。
application/x-www-form-urlencoded 形式のデータをデコードし、
[key, value] という形の配列の配列を返します。
enc で指定したエンコーディングの文字列が URL エンコードされたもの......ドは
https://url.spec.whatwg.org/#concept-urlencoded-parser
にもとづいて実装されています。
そのため「&」区切りのみに対応していて、「;」区切りには対応していません。
require 'uri'
ary = URI.decode_www_form("a=1&a=2&b=3")
p ary......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... -
Net
:: FTP # last _ response _ code -> String (6203.0) -
サーバからの最後の応答のコードを文字列で返します。
サーバからの最後の応答のコードを文字列で返します。
例えばログイン(Net::FTP#login)に成功した場合には
"230" を返します。
数字の意味は 959 参照してください。
@see Net::FTP#last_response -
Net
:: FTP # return _ code -> String (6202.0) -
このメソッドは obsolete です。使わないでください。
このメソッドは obsolete です。使わないでください。
"\n" を返します。 -
Net
:: FTP # return _ code=(string) (6202.0) -
このメソッドは obsolete です。使わないでください。
このメソッドは obsolete です。使わないでください。 -
URI
. decode(str) -> String (6202.0) -
URI 文字列をデコードした文字列を返します。
...URI 文字列をデコードした文字列を返します。
このメソッドは obsolete です。
代わりに
CGI.unescape,
URI.decode_www_form,
URI.decode_www_form_component
などの使用を検討してください。
例:
require 'uri'
puts URI.unescape('http://images.google.co.jp/i... -
URI
. encode(str , unsafe = URI :: UNSAFE) -> String (6202.0) -
URI 文字列をエンコードした文字列を返します。
...I 文字列をエンコードした文字列を返します。
このメソッドは obsolete です。
代わりに
ERB::Util.#url_encode,
CGI.escape,
URI.encode_www_form_component,
WEBrick::HTTPUtils.#escape_form,
WEBrick::HTTPUtils.#escape
などの使用を検討してください。
詳細は... -
Base64
. # decode64(str) -> String (6201.0) -
与えられた文字列を Base64 デコードしたデータを返します。
...文字列を指定します。
require 'base64'
str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
puts Base64.decode64(str)
# This is line one
# This is line two
# This is line three
# And so on...... -
Base64
. # encode64(bin) -> String (6201.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...字ごとに改行を追加します。
@param bin Base64 エンコードするデータを指定します。
require 'base64'
Base64.encode64("Now is the time for all good coders\nto learn Ruby")
# => Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g
# UnVieQ==... -
Base64
. # strict _ decode64(str) -> String (6201.0) -
与えられた文字列を Base64 デコードしたデータを返します。
与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 に対応しています。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例外は発生します。 -
Base64
. # strict _ encode64(bin) -> String (6201.0) -
与えられたデータを Base64 エンコードした文字列を返します。
与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 に対応しています。
改行コードを追加することはありません。
@param bin Base64 エンコードするデータを指定します。