別のキーワード
ライブラリ
- ビルトイン (70)
- delegate (2)
-
irb
/ input-method (1) -
irb
/ output-method (1) - pathname (1)
- prime (3)
- readline (21)
- securerandom (8)
- stringio (1)
- tsort (2)
クラス
- Delegator (2)
- Dir (1)
- File (4)
-
File
:: Stat (1) - IO (3)
-
IRB
:: InputMethod (1) -
IRB
:: OutputMethod (1) - Object (1)
- Pathname (1)
-
Prime
:: PseudoPrimeGenerator (3) - StringIO (1)
モジュール
- Kernel (3)
- Process (27)
-
Process
:: GID (7) -
Process
:: Sys (15) -
Process
:: UID (6) - Readline (16)
- SecureRandom (7)
- TSort (2)
オブジェクト
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - ScriptError (1)
- SecureRandom (1)
- []= (1)
-
_ _ getobj _ _ (1) -
_ _ setobj _ _ (1) - alphanumeric (1)
- base64 (1)
-
basic
_ quote _ characters (1) -
basic
_ quote _ characters= (1) -
basic
_ word _ break _ characters (1) -
basic
_ word _ break _ characters= (1) - birthtime (4)
-
change
_ privilege (2) - clear (1)
-
completer
_ quote _ characters (1) -
completer
_ quote _ characters= (1) -
completer
_ word _ break _ characters (1) -
completer
_ word _ break _ characters= (1) -
completion
_ append _ character (1) -
completion
_ append _ character= (1) - daemon (1)
-
delete
_ at (1) - detach (1)
- egid= (1)
- eid (1)
- eid= (2)
-
emacs
_ editing _ mode (1) - euid= (1)
- fcntl (1)
- fdatasync (1)
-
filename
_ quote _ characters (1) -
filename
_ quote _ characters= (1) - fileno (1)
- fork (4)
-
get
_ screen _ size (1) - getegid (1)
- geteuid (1)
- getgid (1)
- getpgid (1)
- getpgrp (1)
- getpriority (1)
- getrlimit (1)
- gets (1)
- getsid (1)
- getuid (1)
- gid= (1)
-
grant
_ privilege (2) - groups (1)
- groups= (1)
- hex (1)
- initgroups (1)
- issetugid (1)
- lchmod (1)
- lchown (1)
- maxgroups (1)
- maxgroups= (1)
- next (1)
- pop (1)
- pread (1)
- print (1)
- pwrite (1)
-
random
_ bytes (1) -
random
_ number (1) -
re
_ exchange (2) -
respond
_ to? (1) - rewind (1)
-
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 4 feature (1) -
set
_ screen _ size (1) - setegid (1)
- seteuid (1)
- setgid (1)
- setpgid (1)
- setpgrp (1)
- setpriority (1)
- setproctitle (1)
- setregid (1)
- setresgid (1)
- setresuid (1)
- setreuid (1)
- setrgid (1)
- setrlimit (2)
- setruid (1)
- setsid (1)
- setuid (1)
- shift (1)
- spawn (1)
- succ (1)
- switch (4)
- syscall (1)
- times (1)
-
tsort
_ each _ child (1) -
tsort
_ each _ node (1) - uid= (1)
-
urlsafe
_ base64 (1) - uuid (1)
-
vi
_ editing _ mode (1)
検索結果
先頭5件
-
Readline
:: HISTORY . pop -> String (19.0) -
ヒストリの最後の内容を取り出します。 最後の内容は、ヒストリから取り除かれます。
ヒストリの最後の内容を取り出します。
最後の内容は、ヒストリから取り除かれます。
@raise NotImplementedError サポートしていない環境で発生します。
例:
require "readline"
Readline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.pop #=> "baz"
p Readline::HISTORY.pop #=> "bar"
p Readline::HISTORY.pop #=> "foo"
@see Readline::HISTORY.push... -
Readline
:: HISTORY . shift -> String (19.0) -
ヒストリの最初の内容を取り出します。 最初の内容は、ヒストリから取り除かれます。
ヒストリの最初の内容を取り出します。
最初の内容は、ヒストリから取り除かれます。
@raise NotImplementedError サポートしていない環境で発生します。
例:
require "readline"
Readline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.shift #=> "foo"
p Readline::HISTORY.shift #=> "bar"
p Readline::HISTORY.shift #=> "baz"
@see Readline::HISTOR... -
ScriptError (19.0)
-
スクリプトのエラーを表す例外クラスです。
スクリプトのエラーを表す例外クラスです。
以下の例外クラスのスーパークラスです。
* LoadError
* NotImplementedError
* SyntaxError
これらの例外が発生したときは Ruby スクリプト自体に
バグがある可能性が高いと考えられます。 -
SecureRandom (19.0)
-
安全な乱数発生器のためのインターフェースを提供するモジュールです。 HTTP のセッションキーなどに適しています。
安全な乱数発生器のためのインターフェースを提供するモジュールです。
HTTP のセッションキーなどに適しています。
以下の乱数発生器をサポートしています。
* openssl
* /dev/urandom
上の安全な乱数発生器が使用できない場合、各メソッドは NotImplementedError を発生します。
# random hexadecimal string.
require 'securerandom'
p SecureRandom.hex(10) #=> "52750b30ffbc7de3b362"
p SecureRandom.hex(10) #... -
SecureRandom
. alphanumeric(n = nil) -> String (19.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(... -
SecureRandom
. base64(n = nil) -> String (19.0) -
ランダムな base64 文字列を生成して返します。
ランダムな base64 文字列を生成して返します。
@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズではないことに注意して下さい。生成される文字列のサイズは
n の約 4/3 倍になります。nil を指定した場合 n として 16 が使われます。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.base64(3) #=> "4pYO" (文字列のサイ... -
SecureRandom
. hex(n = nil) -> String (19.0) -
ランダムな hex 文字列を生成して返します。
ランダムな hex 文字列を生成して返します。
@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズではないことに注意して下さい。生成される文字列のサイズは
n の 2 倍になります。nil を指定した場合 n として 16 が使われます。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.hex(3) #=> "f72233" (文字列のサイズは 3 で... -
SecureRandom
. random _ bytes(n = nil) -> String (19.0) -
ランダムなバイト列を生成して返します。
ランダムなバイト列を生成して返します。
@param n 生成される文字列のサイズを整数で指定します。
nil を指定した場合 n として 16 が使われます。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.random_bytes(3) #=> "\321\020\203" -
SecureRandom
. random _ number(n = 0) -> Integer | Float (19.0) -
ランダムな数値を生成して返します。 n が 1 以上の整数の場合、0 以上 n 未満の整数を返します。 n が 0 の場合、0.0 以上 1.0 未満の実数を返します。
ランダムな数値を生成して返します。
n が 1 以上の整数の場合、0 以上 n 未満の整数を返します。
n が 0 の場合、0.0 以上 1.0 未満の実数を返します。
@param n ランダムな数値の上限を数値で指定します。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.random_number(1 << 64) #=> 4078466195356651249 -
SecureRandom
. urlsafe _ base64(n = nil , padding = false) -> String (19.0) -
ランダムで URL-safe な base64 文字列を生成して返します。
ランダムで URL-safe な base64 文字列を生成して返します。
@param n 文字列の生成に使われるランダムネスのサイズを整数で指定します。
生成される文字列のサイズはn の約 4/3 倍になります。
nil を指定した場合 n として 16 が使われます。
@param padding 真を指定すると '=' でパディングを行います。
偽を指定するとパディングを行いません。デフォルトは偽です。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
... -
SecureRandom
. uuid -> String (19.0) -
バージョン 4 の UUID (Universally Unique IDentifier) を生成して返します。
バージョン 4 の UUID (Universally Unique IDentifier) を生成して返します。
version 4 の UUID は全くランダムです (バージョンを除いて)。
この UUID は MAC アドレスや時刻などのような意味のある情報を含みません。
@raise NotImplementedError 安全な乱数発生器が使えない場合に発生します。
require 'securerandom'
p SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
p SecureRan... -
TSort
# tsort _ each _ child(node) {|child| . . . } -> () (19.0) -
TSort で拡張されるクラスで定義されていなければならないメソッドです。
TSort で拡張されるクラスで定義されていなければならないメソッドです。
tsort_each_child is used to iterate for child nodes of node.
@param node ノードを指定します。
@raise NotImplementedError TSort で拡張されるクラスで定義されていない場合発生します。 -
TSort
# tsort _ each _ node {|node| . . . } -> () (19.0) -
TSort で拡張されるクラスで定義されていなければならないメソッドです。
TSort で拡張されるクラスで定義されていなければならないメソッドです。
tsort_each_node is used to iterate for all nodes over a graph.
@raise NotImplementedError TSort で拡張されるクラスで定義されていない場合発生します。