48件ヒット
[1-48件を表示]
(0.077秒)
ライブラリ
- base64 (22)
- securerandom (22)
モジュール
- Base64 (22)
- SecureRandom (22)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) -
strict
_ decode64 (11) -
urlsafe
_ base64 (11) -
urlsafe
_ decode64 (11)
検索結果
先頭5件
-
SecureRandom
. base64(n = nil) -> String (18229.0) -
ランダムな base64 文字列を生成して返します。
...ランダムな base64 文字列を生成して返します。
@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズではないことに注意して下さい。生成される文字列のサイズは......3 倍になります。nil を指定した場合 n として 16 が使われます。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.base64(3) #=> "4pYO" (文字列のサイズは 3 でない)
@see 3548... -
Base64
. # urlsafe _ decode64(str) -> String (17140.0) -
与えられた文字列を Base64 デコードしたデータを返します。
... Base64 デコードしたデータを返します。
このメソッドは 4648 の "Base 64 Encoding with URL and Filename Safe Alphabet" に対応しています。
"+" を "-" に "/" を "_" に置き換えます。
@param str Base64 デコードする文字列を指定します。
@raise Ar......gumentError 与えられた引数が Base64 エンコードされたデータとして正しい形式ではない場合に発生します。
例えば、アルファベットでない文字列や CR, LF などが含まれている場合にこの例外は発生します。... -
Base64
. # strict _ decode64(str) -> String (17134.0) -
与えられた文字列を Base64 デコードしたデータを返します。
...与えられた文字列を Base64 デコードしたデータを返します。
このメソッドは 4648 に対応しています。
@param str Base64 デコードする文字列を指定します。
@raise ArgumentError 与えられた引数が Base64 エンコードされたデータとし... -
SecureRandom
. urlsafe _ base64(n = nil , padding = false) -> String (6281.0) -
ランダムで URL-safe な base64 文字列を生成して返します。
...ランダムで URL-safe な base64 文字列を生成して返します。
@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズはn の約 4/3 倍になります。
nil を指定した場合 n......@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.urlsafe_base64 #=> "b4GOKm4pOYU_-BOXcrUGDg"
p SecureRandom.urlsafe_base64 #=> "UZLdOkzop70Ddx-IJR0ABg"
p SecureRandom.urlsafe_base64(nil, true) #=> "i0XQ-......7gglIsHGV2_BNPrdQ=="
p SecureRandom.urlsafe_base64(nil, true) #=> "-M8rLhr7JEpJlqFGUMmOxg=="
@see SecureRandom.base64, 3548... -
NEWS for Ruby 3
. 0 . 0 (306.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...mlist{
def method_missing(meth, ...)
send(:"do_#{meth}", ...)
end
//}
* Pattern matching (`case/in`) is no longer experimental. 17260
* One-line pattern matching is redesigned. [EXPERIMENTAL]
* `=>` is added. It can be used like a rightward assignment.
17260
* `in......emlist{
0 => a
p a #=> 0
{b: 0, c: 1} => {b:}
p b #=> 0
//}
//emlist{
# version 3.0
0 in 1 #=> false
# version 2.7
0 in 1 #=> raise NoMatchingPatternError
//}
* Find-pattern is added. [EXPERIMENTAL]
16828
//emlist{
case ["a", 1, "b", "c", 2, "d", "e", "f", 3]
in [*pre, String => x, Strin......tdlib.
* English
* abbrev
* base64
* drb
* debug
* erb
* find
* net-ftp
* net-http
* net-imap
* net-protocol
* open-uri
* optparse
* pp
* prettyprint
* resolv-replace
* resolv
* rinda
*...