1089件ヒット
[101-200件を表示]
(0.375秒)
ライブラリ
- English (44)
- ビルトイン (568)
- bigdecimal (22)
- csv (11)
- mkmf (88)
- pty (44)
- scanf (12)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (88)
クラス
- CSV (11)
- IO (44)
- Object (33)
- Random (88)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (44)
- String (67)
- SystemExit (11)
- Thread (22)
- UnboundMethod (11)
モジュール
- Kernel (403)
- PTY (44)
- Process (44)
-
Socket
:: Constants (44)
キーワード
-
$ $ (11) -
$ . (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ NR (11) -
$ PID (11) -
$ PROCESS _ ID (11) -
$ SAFE (7) - % (11)
-
AI
_ V4MAPPED _ CFG (22) - BigDecimal (22)
- Converters (11)
- Integer (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Rational (22)
- Ruby用語集 (11)
-
SO
_ ATTACH _ FILTER (22) -
SO
_ DETACH _ FILTER (22) -
SO
_ NKE (22) - [] (18)
-
add
_ trace _ func (11) - bigdecimal (11)
- binwrite (11)
-
check
_ signedness (22) - class (11)
-
convertible
_ int (22) - fork (44)
- format (11)
- getpty (22)
- hex (11)
- kill (11)
- mathn (4)
- method (11)
- oct (11)
- owner (11)
- putc (11)
- rand (88)
-
rb
_ f _ integer (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - scanf (12)
-
set
_ trace _ func (11) - sleep (22)
- spawn (77)
- sprintf (11)
- sprintf フォーマット (11)
- srand (44)
- status (11)
- syscall (11)
- sysopen (11)
- test (40)
-
to
_ f (11) -
to
_ int (11) -
try
_ constant (22) - write (22)
- このマニュアルのヘルプ (11)
- セキュリティモデル (8)
- 制御構造 (11)
検索結果
先頭5件
-
Kernel
. # fork -> Integer | nil (21114.0) -
fork(2) システムコールを使ってプロセスの複製を作 ります。親プロセスでは子プロセスのプロセスIDを、子プロセスでは nil を返します。ブロックを指定して呼び出した場合には、生成し た子プロセスでブロックを評価します。
...puts "parent process. pid: #{Process.pid}, child pid: #{child_pid}"
# => parent process. pid: 79055, child pid: 79602
# 親プロセスでの処理
# ...
# 子プロセスの終了を待って終了。
Process.waitpid(child_pid)
//}
@see IO.popen,IO.pipe,Kernel.#at_exit,Kernel.#exit!, fork(2)... -
Kernel
. # fork { . . . } -> Integer | nil (21114.0) -
fork(2) システムコールを使ってプロセスの複製を作 ります。親プロセスでは子プロセスのプロセスIDを、子プロセスでは nil を返します。ブロックを指定して呼び出した場合には、生成し た子プロセスでブロックを評価します。
...puts "parent process. pid: #{Process.pid}, child pid: #{child_pid}"
# => parent process. pid: 79055, child pid: 79602
# 親プロセスでの処理
# ...
# 子プロセスの終了を待って終了。
Process.waitpid(child_pid)
//}
@see IO.popen,IO.pipe,Kernel.#at_exit,Kernel.#exit!, fork(2)... -
Kernel
. # rand(max = 0) -> Integer | Float (21114.0) -
擬似乱数を発生させます。
...上 1.0 未満の実数を、正の整数の場合は 0 以上 max 未満の整数を返します。
それ以外の値を指定した場合は max.to_int の絶対値が指定されたものとして扱います。
二番目の形式では range で指定された範囲の値を返します。
ran......を、少なくとも片方が実数の場合は実数を返します。
range に含まれる数が無い場合は nil を返します。
まだ Kernel.#srand が呼ばれていなければ自動的に呼び出します。
擬似乱数生成器として Random::DEFAULT を使用します。
こ......10) #=> 1 (0 から 9 までの整数。終端を含まない)
rand(1.0..1.5) #=> 1.1362963047752432 (1.0 以上 1.5 以下の実数)
rand(1.0...1.5) #=> 1.1382321275715483 (1.0 以上 1.5 未満の実数)
rand(1..0) #=> nil
//}
@see Kernel.#srand, Random#rand, Random......を、少なくとも片方が実数の場合は実数を返します。
range に含まれる数が無い場合は nil を返します。
まだ Kernel.#srand が呼ばれていなければ自動的に呼び出します。
擬似乱数生成器として Random クラスオブジェクトを使用... -
Kernel
. # rand(range) -> Integer | Float | nil (21114.0) -
擬似乱数を発生させます。
...上 1.0 未満の実数を、正の整数の場合は 0 以上 max 未満の整数を返します。
それ以外の値を指定した場合は max.to_int の絶対値が指定されたものとして扱います。
二番目の形式では range で指定された範囲の値を返します。
ran......を、少なくとも片方が実数の場合は実数を返します。
range に含まれる数が無い場合は nil を返します。
まだ Kernel.#srand が呼ばれていなければ自動的に呼び出します。
擬似乱数生成器として Random::DEFAULT を使用します。
こ......10) #=> 1 (0 から 9 までの整数。終端を含まない)
rand(1.0..1.5) #=> 1.1362963047752432 (1.0 以上 1.5 以下の実数)
rand(1.0...1.5) #=> 1.1382321275715483 (1.0 以上 1.5 未満の実数)
rand(1..0) #=> nil
//}
@see Kernel.#srand, Random#rand, Random......を、少なくとも片方が実数の場合は実数を返します。
range に含まれる数が無い場合は nil を返します。
まだ Kernel.#srand が呼ばれていなければ自動的に呼び出します。
擬似乱数生成器として Random クラスオブジェクトを使用... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (21107.0) -
単体のファイルでファイルテストを行います。
...: ?z
ファイルサイズが 0 である
: ?s
ファイルサイズが 0 でない (ファイルサイズを返す、0 ならば nil) -> Integer|nil
: ?f
ファイルはプレーンファイルである
: ?d
ファイルはディレクトリである
: ?l
ファイルはシン... -
Kernel
# check _ sizeof(type , headers = nil) -> Integer | nil (21102.0) -
与えられた型のサイズを返します。
...型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。
@param... -
Kernel
# check _ sizeof(type , headers = nil) { . . . } -> Integer | nil (21102.0) -
与えられた型のサイズを返します。
...型のサイズを返します。型 type がシステムに
存在しない場合は、nil を返します。
例えば、
require 'mkmf'
check_sizeof('mystruct') # => 12
である場合、SIZEOF_MYSTRUCT=12 というプリプロセッサマクロをコンパイラに渡します。
@param... -
Kernel
$ $ INPUT _ LINE _ NUMBER -> Integer (21102.0) -
$. の別名
$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5 -
Kernel
$ $ NR -> Integer (21102.0) -
$. の別名
$. の別名
1 e
2 f
3 g
4 h
5 i
# end of a.txt
require "English"
File.foreach(ARGV.at(0)){|line|
# read line
}
p $INPUT_LINE_NUMBER
# end of sample.rb
ruby sample.rb a.txt
#=> 5 -
Kernel
$ $ PID -> Integer (21102.0) -
$$ の別名
$$ の別名
require "English"
p sprintf("something%s", $PID) #=> "something5543" など