るりまサーチ (Ruby 3.0)

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

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

種類

ライブラリ

モジュール

検索結果

SecureRandom.alphanumeric(n = nil) -> String (54643.0)

ランダムな英数字を生成して返します。

ランダムな英数字を生成して返します。

@param n 生成される文字列のサイズを整数で指定します。
nil を指定した場合 n として 16 が使われます。
@return A-Z, a-z, 0-9 からなる文字列が返されます。

@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。

//emlist[][ruby]{
require 'securerandom'
p SecureRandom.alphanumeric #=> "2BuBuLf3WfSKyQbR"
p SecureRandom.alphanumeric(...

NEWS for Ruby 2.5.0 (325.0)

NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...はext/openssl/History.mdの"Version 2.1.0"セクションにあります。

* pathname
* Pathname#glob を追加 7360

* psych
* Psych 3.0.2 に更新しました
* Convert fallback option to a keyword argument
https://github.com/ruby/psych/pull/342
* Add :symbolize...