260件ヒット
[1-100件を表示]
(0.120秒)
クラス
- IO (154)
- SystemExit (11)
- Thread (33)
-
WIN32OLE
_ TYPE (11)
キーワード
- exit! (11)
-
irb
_ at _ exit (11) -
irb
_ exit (11) - kill (11)
-
last
_ status (7) - new (11)
- pass (11)
- popen (154)
- progids (11)
検索結果
先頭5件
-
Process
. exit(status = true) -> () (24224.0) -
プロセスを終了します。関数 Kernel.#exit と同じです。
...プロセスを終了します。関数 Kernel.#exit と同じです。
@param status 終了ステータスを boolean か整数で指定します。true の場合は成功を、false は失敗を意味します。
@see exit(3)... -
Thread
. exit -> () (24218.0) -
カレントスレッドに対して Thread#exit を呼びます。
...カレントスレッドに対して Thread#exit を呼びます。... -
IRB
. irb _ exit(irb , ret) -> object (15302.0) -
irb を終了します。ret で指定したオブジェクトを返します。
...
irb を終了します。ret で指定したオブジェクトを返します。
@param irb 現在の IRB::Irb オブジェクトを指定します。
@param ret 戻り値を指定します。
ユーザが直接使用するものではありません。... -
IRB
. irb _ at _ exit -> () (15218.0) -
at_exit で登録された処理を実行します。
...at_exit で登録された処理を実行します。
ユーザが直接使用するものではありません。... -
Process
. exit!(status = false) -> () (12224.0) -
関数 Kernel.#exit! と同じです。
...関数 Kernel.#exit! と同じです。
@param status 終了ステータスを boolean か整数で指定します。true の場合は成功を、false は失敗を意味します。
@see _exit(2)... -
SystemExit
. new(status = 0 , error _ message = "") -> SystemExit (6201.0) -
SystemExit オブジェクトを生成して返します。
...SystemExit オブジェクトを生成して返します。
@param status 終了ステータスを整数で指定します。
@param error_message エラーメッセージを文字列で指定します。
例:
ex = SystemExit.new(1)
p ex.status # => 1... -
Thread
. kill(thread) -> Thread (6117.0) -
指定したスレッド thread に対して Thread#exit を呼びます。終了したスレッドを返します。
...指定したスレッド thread に対して Thread#exit を呼びます。終了したスレッドを返します。
@param thread 終了したい Thread オブジェクトを指定します。
th = Thread.new do
end
p Thread.kill(th) #=> #<Thread:0x40221bc8 dead>... -
WIN32OLE
_ TYPE . progids -> [String] (6113.0) -
システムに登録されているすべてのコンポーネントクラスのPROGIDを取得します。
...ラスのPROGIDを取得します。
@return システムに登録されているすべてのコンポーネントクラスのPROGIDを
文字列配列で返します。
excel = nil
WIN32OLE_TYPE.progids.each do |pg|
if pg =~ /excel\.application/i # ExcelのPROGIDをバージョ......ン無視で取り出す
excel = WIN32OLE.new(pg)
break
end
end
unless excel
$stderr.puts "Excel isn't installed"
exit(1)
end
excel.visible = true
# ...
excel.Quit
PROGIDは、生成可能なOLEオートメーションサーバのCoClass(コンポーネント......クラス)が持つレジストリ登録名です。WIN32OLE.newの引数に指定して
WIN32OLEオブジェクトを生成できます。... -
IO
. popen("-" , mode = "r" , opt={}) -> IO (3107.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...では IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit
end......た IO オブジェクトを引数に
ブロックを実行し、その結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
子プロセスでは nil を引数にブロックを実行し終了します。
p IO.popen("-", "r+") {|io|......if io # parent
io.puts "foo"
io.gets
else # child
s = gets
puts "child output: " + s
end
}
# => "child output: foo\n"
opt ではエンコーディングの設定やプロセス起動のためのオプションが指定できます。
IO.new や Kernel.#... -
IO
. popen("-" , mode = "r" , opt={}) {|io| . . . } -> object (3107.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
...では IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit
end......た IO オブジェクトを引数に
ブロックを実行し、その結果を返します。ブロックの実行後、生成したパイ
プは自動的にクローズされます。
子プロセスでは nil を引数にブロックを実行し終了します。
p IO.popen("-", "r+") {|io|......if io # parent
io.puts "foo"
io.gets
else # child
s = gets
puts "child output: " + s
end
}
# => "child output: foo\n"
opt ではエンコーディングの設定やプロセス起動のためのオプションが指定できます。
IO.new や Kernel.#...