329件ヒット
[101-200件を表示]
(0.022秒)
ライブラリ
- ビルトイン (80)
- objspace (36)
- timeout (21)
-
win32
/ registry (192)
モジュール
- Kernel (68)
- ObjectSpace (48)
- Timeout (21)
-
Win32
:: Registry :: API (192)
キーワード
- CloseKey (12)
- CreateKey (12)
- DeleteKey (12)
- DeleteValue (12)
- EnumKey (12)
- EnumValue (12)
- FlushKey (12)
- OpenKey (12)
- QueryInfoKey (12)
- QueryValue (12)
- SetValue (12)
- catch (24)
- check (12)
-
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - loop (20)
- packdw (12)
- packqw (12)
- test (24)
- timeout (21)
- unpackdw (12)
- unpackqw (12)
検索結果
先頭5件
-
Kernel
. # loop -> Enumerator (7.0) -
(中断されない限り)永遠にブロックの評価を繰り返します。 ブロックが指定されなければ、代わりに Enumerator を返します。
...。
ループを終了させる場合、通常は break を使用してください。
//emlist[例][ruby]{
enum = Enumerator.new { |y|
y << "one"
y << "two"
:ok
}
result = loop {
puts enum.next
} # => :ok
//}
@return break の引数など、ループ脱出時の値を返します。... -
Kernel
. # loop { . . . } -> object | nil (7.0) -
(中断されない限り)永遠にブロックの評価を繰り返します。 ブロックが指定されなければ、代わりに Enumerator を返します。
...。
ループを終了させる場合、通常は break を使用してください。
//emlist[例][ruby]{
enum = Enumerator.new { |y|
y << "one"
y << "two"
:ok
}
result = loop {
puts enum.next
} # => :ok
//}
@return break の引数など、ループ脱出時の値を返します。... -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (7.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...id
while line = com.gets
print line
end
}
rescue Timeout::Error => err
puts "timeout: shell execution."
Process.kill('SIGINT', pid)
printf "[result]\t%s", com.read
com.close unless com.nil?
end
#止まっているか確認する。
#system("ps au")... -
Timeout
. # timeout(sec , exception _ class , message) {|i| . . . } -> object (7.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...id
while line = com.gets
print line
end
}
rescue Timeout::Error => err
puts "timeout: shell execution."
Process.kill('SIGINT', pid)
printf "[result]\t%s", com.read
com.close unless com.nil?
end
#止まっているか確認する。
#system("ps au")... -
Kernel
. # test(cmd , file) -> bool | Time | Integer | nil (3.0) -
単体のファイルでファイルテストを行います。
単体のファイルでファイルテストを行います。
@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 下表に特に明記していないものは、真偽値を返します。
以下は cmd として指定できる文字リテラルとその意味です。
: ?r
ファイルを実効 uid で読むことができる
: ?w
ファイルに実効 uid で書くことができる
: ?x
ファイルを... -
Win32
:: Registry :: API . # CloseKey(hkey) (2.0) -
@todo
@todo -
Win32
:: Registry :: API . # CreateKey(hkey , name , opt , desired) (2.0) -
@todo
@todo -
Win32
:: Registry :: API . # DeleteKey(hkey , name) (2.0) -
@todo
@todo -
Win32
:: Registry :: API . # DeleteValue(hkey , name) (2.0) -
@todo
@todo -
Win32
:: Registry :: API . # EnumKey(hkey , index) (2.0) -
@todo
@todo
