3500件ヒット
[101-200件を表示]
(0.050秒)
クラス
-
ARGF
. class (176) - Array (66)
- BasicObject (22)
- Binding (11)
- Complex (22)
- Enumerator (11)
- Exception (22)
- File (33)
- IO (429)
- LoadError (11)
- Method (11)
- Module (165)
- Object (176)
- Proc (18)
- Random (95)
- Rational (11)
- String (66)
- SystemExit (11)
- Thread (88)
-
Thread
:: Backtrace :: Location (11) - TracePoint (11)
- UnboundMethod (21)
- UncaughtThrowError (20)
キーワード
-
$ ! (11) -
$ " (11) -
$ $ (11) -
$ & (11) -
$ & # 39; (11) -
$ * (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -K (11) -
$ -W (11) -
$ -a (11) -
$ -d (11) -
$ -i (11) -
$ -l (11) -
$ -p (11) -
$ -v (11) -
$ -w (11) -
$ . (11) -
$ / (11) -
$ 0 (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ : (11) -
$ ; (11) -
$ < (11) -
$ = (11) -
$ > (11) -
$ ? (11) -
$ @ (11) -
$ DEBUG (11) -
$ FILENAME (11) -
$ KCODE (11) -
$ LOADED _ FEATURES (11) -
$ LOAD _ PATH (11) -
$ PROGRAM _ NAME (11) -
$ SAFE (11) -
$ VERBOSE (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) -
$ stderr (11) -
$ stdin (11) -
$ stdout (11) -
$ ~ (11) - % (11)
- ARGF (22)
- Array (11)
- BasicObject (11)
- Binding (11)
- Complex (33)
- DATA (11)
- DEFAULT (7)
- File (11)
- Float (11)
- Hash (11)
- Integer (11)
- Kernel (11)
- LoadError (11)
- Location (11)
- Proc (11)
- Rational (22)
- RuntimeError (11)
-
SCRIPT
_ LINES _ _ (11) - String (11)
- ThreadError (11)
- TracePoint (11)
- UncaughtThrowError (10)
-
_ _ callee _ _ (11) -
_ _ dir _ _ (11) -
_ _ method _ _ (11) - ` (11)
- abort (44)
-
add
_ trace _ func (11) -
alias
_ method (11) - ancestors (11)
-
at
_ exit (11) - autoload (22)
- autoload? (22)
-
backtrace
_ locations (22) -
bind
_ call (10) - binding (11)
- binread (11)
- binwrite (11)
-
block
_ given? (11) - caller (33)
-
caller
_ locations (22) - catch (22)
- chomp (11)
- chop (11)
- class (11)
-
class
_ eval (22) -
class
_ variables (11) -
const
_ defined? (11) - constants (22)
- convert (11)
-
defined
_ class (11) - eval (33)
- exception (22)
- exec (44)
- exit (33)
- exit! (22)
- fail (33)
-
for
_ fd (11) - foreach (22)
- fork (44)
- format (11)
- freeze (11)
- gets (44)
-
global
_ variables (11) - gsub (33)
- hex (11)
- identical? (11)
- include (11)
- inspect (11)
-
instance
_ eval (22) -
instance
_ variables (11) - iterator? (11)
- kill (22)
- lambda (17)
- load (11)
-
local
_ variables (11) - loop (22)
- method (11)
-
module
_ eval (22) - new (40)
- next (11)
- oct (11)
- open (66)
- owner (22)
- p (11)
- path (11)
- popen (154)
- pp (7)
- print (33)
- printf (44)
- proc (18)
-
public
_ instance _ method (11) - putc (33)
- puts (33)
- raise (44)
- rand (88)
- read (33)
- readline (44)
- readlines (77)
- rect (11)
- rectangular (11)
-
remove
_ const (11) - reopen (33)
- require (11)
-
require
_ relative (11) - sample (44)
- select (22)
- send (22)
-
set
_ trace _ func (22) - shuffle! (22)
-
singleton
_ method (11) - sleep (22)
- spawn (55)
- sprintf (11)
- srand (44)
- status (11)
- sub (22)
- syscall (11)
- sysopen (11)
- system (44)
- tag (10)
- terminate (11)
- test (22)
- throw (11)
-
to
_ a (44) -
to
_ ary (11) -
to
_ f (11) -
to
_ i (11) -
to
_ int (11) -
to
_ r (11) -
to
_ s (22) -
to
_ str (11) -
trace
_ var (33) - trap (22)
-
untrace
_ var (11) - value (10)
- warn (27)
- write (22)
検索結果
先頭5件
-
Kernel
. # srand(seed) -> Integer (9030.0) -
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
...
Kernel.#rand や Random.rand で使用される擬似乱数生成器の種を設定し、古い種を返します。
seed に整数を指定するとその絶対値を乱数の種に設定します。
それ以外の値を指定した場合は seed.to_int が指定されたものとして扱いま......す。
seed に既知の値を与えると、以前の Kernel.#rand の値を再現できます。
seed が省略された時には
現在の時刻やプロセス ID、srand を呼び出した回数、
また可能なら /dev/urandom から読み出したデータなどを元に種を作ります......) #=> 0.938911141393347
p rand(0) #=> 0.915824970865251
seeds << srand(num)
p rand(6) #=> 3
p rand(6) #=> 0
p rand(0) #=> 0.445804380918972
p rand(0) #=> 0.422248634121701
seeds << srand
p seeds #=> [455675, 2995620310703489221660585195204777696, 455675]
//}
@see Kernel.#rand, Random::DEFAULT... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (9029.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...umask
* 子プロセスでのリダイレクト
などを変更できます。環境変数のクリアなども指定できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも......s オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)......se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # system(program , *args , options={}) -> bool | nil (9029.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...umask
* 子プロセスでのリダイレクト
などを変更できます。環境変数のクリアなども指定できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも......s オプションパラメータ Hash
@raise ArgumentError 第一引数が配列かつ要素数が 2 でない場合に発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)......se RuntimeError exception: true が指定されていて、コマンドの終了ステータスが 0 以外のときに発生します。
//emlist[インタプリタから直接コマンドを実行][ruby]{
system("echo", "*") # => true
# *
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)... -
Kernel
. # `(command) -> String (9026.0) -
command を外部コマンドとして実行し、その標準出力を文字列として 返します。このメソッドは `command` の形式で呼ばれます。
...タスを得るには、$? を参照します。
コマンドの出力を得る必要がなく、単にコマンドを実行したいだけなら
Kernel.#system を使います。特に端末を制御するコマンドでは
`command` は失敗するかもしれません。
d:spec/literal#command......Errno::EXXX コマンドを実行できないときや失敗した場合に発生します。
//emlist[例][ruby]{
puts `ruby -v` #=> ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
puts $?.inspect #=> #<Process::Status: pid=3580,exited(0)>
//}
@see Kernel.#system,Kernel.#exec,Kernel.#spawn... -
Kernel
$ $ " -> [String] (9024.0) -
Kernel.#require でロードされたファイル名を含む配列です。
...
Kernel.#require でロードされたファイル名を含む配列です。
Kernel.#require で同じファイルを
複数回ロードしないようにするためのロックとして使われます。
この変数はグローバルスコープです。... -
Kernel
$ $ @ -> [String] | nil (9024.0) -
最後に例外が発生した時のバックトレースを表す配列です。 Kernel.#raise によって設定されます。
...トレースを表す配列です。
Kernel.#raise によって設定されます。
配列の各要素はメソッドの呼び出し位置を示す文字列で形式は
"filename:line"
または
"filename:line:in `methodname'"
です。これは Kernel.#caller が返す値と同じ形式... -
Kernel
$ $ LOADED _ FEATURES -> [String] (9024.0) -
Kernel.#require でロードされたファイル名を含む配列です。
...
Kernel.#require でロードされたファイル名を含む配列です。
Kernel.#require で同じファイルを
複数回ロードしないようにするためのロックとして使われます。
この変数はグローバルスコープです。... -
Kernel
. # autoload?(const _ name) -> String | nil (9024.0) -
const_name が Kernel.#autoload 設定されているか調べます。
...const_name が Kernel.#autoload 設定されているか調べます。
autoload 設定されていて、autoload 定数がまだ定義されてない(ロードされていない)
ときにそのパス名を返します。
autoload 設定されていないか、ロード済みなら nil を返し......lass Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----
class Foo
end
p Foo.autoload?(:Bar) #=> nil
Foo.autoload :Bar, '/tmp/foo'
p Foo.autoload?(:Bar) #=> "/tmp/foo"
p Foo::Bar #=> Foo::Bar
p Foo.autoload?(:Bar) #=> nil
//}
@see Kernel.#autoload... -
Kernel
. # binding -> Binding (9024.0) -
変数・メソッドなどの環境情報を含んだ Binding オブジェクトを 生成して返します。通常、Kernel.#eval の第二引数として使います。
...変数・メソッドなどの環境情報を含んだ Binding オブジェクトを
生成して返します。通常、Kernel.#eval の第二引数として使います。
//emlist[例][ruby]{
def foo
a = 1
binding
end
eval("p a", foo) #=> 1
//}
@see Kernel.#eval,Object::TOPLEVEL_BINDING... -
Kernel
. # system(command , options={}) -> bool | nil (9024.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
...# => Errno::ENOENT (No such file or directory - sad)
system('ruby -e "exit(false)"', exception: true) # => RuntimeError (Command failed with exit 1: ruby -e "exit(false)")
system('ruby -e "exit(true)"', exception: true) # => true
//}
@see Kernel.#`,Kernel.#spawn,Kernel.#exec,system(3)...