495件ヒット
[101-200件を表示]
(0.061秒)
別のキーワード
種類
- インスタンスメソッド (210)
- 特異メソッド (201)
- モジュール関数 (84)
ライブラリ
クラス
-
ARGF
. class (36) -
Encoding
:: Converter (36) - IO (84)
-
Net
:: IMAP (24) - String (112)
- StringScanner (12)
- Symbol (21)
キーワード
- casecmp (24)
- casecmp? (18)
-
decode
_ utf7 (12) -
decode
_ www _ form (12) -
decode
_ www _ form _ component (12) - encode! (24)
- encode64 (12)
-
encode
_ utf7 (12) -
encode
_ www _ form (12) -
encode
_ www _ form _ component (12) - escape (7)
-
for
_ fd (12) - form (24)
- hexencode (12)
- match? (12)
- new (79)
- open (24)
-
set
_ encoding (72) -
strict
_ encode64 (12) - tolocale (12)
- u (12)
-
url
_ encode (12) -
urlsafe
_ encode64 (12)
検索結果
先頭5件
-
Base64
. # urlsafe _ encode64(bin , padding: true) -> String (6125.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...。
@param bin Base64 エンコードするデータを指定します。
@param padding false を指定した場合、 = によるパディングが行われなくなります。
//emlist[例][ruby]{
require 'base64'
p Base64.urlsafe_encode64('hoge')
# => "aG9nZQ=="
p Base64.urlsafe_encode64('h... -
Base64
. # encode64(bin) -> String (6113.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...ています。
エンコード後の文字で 60 文字ごとに改行を追加します。
@param bin Base64 エンコードするデータを指定します。
require 'base64'
Base64.encode64("Now is the time for all good coders\nto learn Ruby")
# => Tm93IGlzIHRoZSB0aW1lIGZvciBhb... -
Net
:: IMAP . encode _ utf7(str) -> String (6113.0) -
UTF-8 の文字列を modified UTF-7 の文字列に変換します。
...。
modified UTF-7 は IMAP のメールボックス名に使われるエンコーディングで、
UTF-7 を修正したものです。
詳しくは Net::IMAP.encode_utf7 を見てください。
@param str 変換対象の UTF-8 でエンコードされた文字列
@see Net::IMAP.decode_utf7... -
Base64
. # strict _ encode64(bin) -> String (6107.0) -
与えられたデータを Base64 エンコードした文字列を返します。
...与えられたデータを Base64 エンコードした文字列を返します。
このメソッドは 4648 に対応しています。
改行コードを追加することはありません。
@param bin Base64 エンコードするデータを指定します。... -
Digest
. # hexencode(string) -> String (6106.0) -
引数である文字列 string を、16進数に変換した文字列を生成して返します。
...た文字列を生成して返します。
@param string 文字列を指定します。
//emlist[][ruby]{
require 'digest'
p Digest.hexencode("") # => ""
p Digest.hexencode("d") # => "64"
p Digest.hexencode("\1\2") # => "0102"
p Digest.hexencode("\xB0") # => "b0"
p digest = Digest::MD5.di......t.hexencode(digest) # => "58e53d1324eef6265fdb97b08ed9aadf"
p Digest::MD5.hexdigest("ruby") # => "58e53d1324eef6265fdb97b08ed9aadf"
p digest = Digest::SHA1.digest("ruby") # => "\x18\xE4\x0E\x14\x01\xEE\xF6~\x1A\xE6\x9E\xFA\xB0\x9A\xFBq\xF8\x7F\xFB\x81"
p Digest.hexencode(dige... -
ERB
:: Util . # url _ encode(s) -> String (3113.0) -
文字列 s を URLエンコードした文字列を返します。
...RL エンコードを行った文字列を返します(CGI.escapeとほぼ同じです)。
@param s URLエンコードを行う文字列
//emlist[例][ruby]{
require "erb"
include ERB::Util
puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
# Programming%20Ruby%3A%20%20The%20P... -
URI
. escape(str , unsafe = URI :: UNSAFE) -> String (3025.0) -
URI 文字列をエンコードした文字列を返します。
...RI 文字列をエンコードした文字列を返します。
このメソッドは obsolete です。
代わりに
ERB::Util.#url_encode,
CGI.escape,
URI.encode_www_form_component,
WEBrick::HTTPUtils.#escape_form,
WEBrick::HTTPUtils.#escape
などの使用を検討してください。
詳細......e('http://images.google.co.jp/images?q=モナリザ&ie=EUC-JP')
#=> "http://images.google.co.jp/images?q=%A5%E2%A5%CA%A5%EA%A5%B6&ie=EUC-JP"
@param str URI を文字列として与えます。
@param unsafe URI として指定できない文字を正規表現か文字列で指定します。... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") -> String (119.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します......ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get", "url"){ "string" }
# <FORM METHOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>... -
CGI
:: HtmlExtension # form(method = "post" , action = nil , enctype = "application / x-www-form-urlencoded") { . . . } -> String (119.0) -
form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。
...評価した結果が内容になります。
@param method method 属性の値として "get" か "post" を指定します。
@param action action 属性の値を指定します。デフォルトは現在の CGI スクリプト名です。
@param enctype enctype 属性の値を指定します......ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>
form("get", "url"){ "string" }
# <FORM METHOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>... -
ARGF
. class # set _ encoding(enc _ str , options = {}) -> self (36.0) -
ARGF の外部/内部エンコーディングを設定します。 次以降に処理するファイルにも同じ設定が適用されます。
...ださい。
@param enc_str 外部/内部エンコーディングを"A:B" のようにコロンで
区切って指定します。
@param ext_enc 外部エンコーディングを表す文字列か
Encoding オブジェクトを指定します。
@param int_enc 内部......エンコーディングを表す文字列か
Encoding オブジェクトを指定します。
@param options エンコーディング変換のオプション。
String#encode と同じものが指定できます。
@see String#encode...