1030件ヒット
[101-200件を表示]
(0.135秒)
ライブラリ
- ビルトイン (582)
- etc (12)
- irb (12)
-
irb
/ cmd / help (12) -
irb
/ extend-command (12) - open3 (60)
- optparse (48)
- pty (12)
- rake (12)
- readline (12)
-
shell
/ process-controller (6) - timeout (21)
- win32ole (12)
クラス
- Fiber (18)
- IO (120)
-
IRB
:: ExtendCommand :: Help (12) - LocalJumpError (24)
- OptionParser (36)
-
PTY
:: ChildExited (12) -
Process
:: Status (48) -
Shell
:: ProcessController (6) - SystemExit (24)
- Thread (84)
- WIN32OLE (12)
モジュール
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - >> (12)
-
NEWS for Ruby 2
. 2 . 0 (11) - OptionParser (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
-
SC
_ ATEXIT _ MAX (12) - Status (12)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) - abort (24)
-
at
_ exit (12) - capture2e (12)
- capture3 (12)
-
define
_ finalizer (24) - detach (12)
- execute (12)
- exit! (24)
-
exit
_ value (12) - exited? (12)
- exitstatus (12)
- irb (12)
-
irb
_ at _ exit (12) -
irb
_ exit (12) - kill (24)
-
last
_ status (8) -
localjump
_ exitstatus (12) - new (12)
-
ole
_ respond _ to? (12) -
on
_ tail (12) - optparse (12)
- pass (12)
- pipeline (12)
-
pipeline
_ r (24) - popen (120)
- raise (18)
-
rb
_ ensure (12) -
rb
_ exit (12) -
rb
_ f _ at _ exit (12) -
rb
_ f _ exit (12) -
rb
_ gc _ call _ finalizer _ at _ exit (12) -
rb
_ thread _ exit (12) -
rb
_ thread _ restore _ context (12) - readline (12)
- reason (12)
-
ruby 1
. 6 feature (12) - separator (12)
- sh (12)
-
stack
_ extend (12) - status (36)
- system (28)
- terminate (12)
- throw (12)
- timeout (21)
-
to
_ i (12) - trap (24)
- ver (12)
- wait (12)
- wait2 (12)
- waitall (12)
- waitpid (12)
- waitpid2 (12)
- セキュリティモデル (2)
- 制御構造 (12)
- 終了処理 (12)
検索結果
先頭5件
-
static VALUE localjump
_ exitstatus(VALUE exc) (12300.0) -
-
static VALUE rb
_ f _ at _ exit(void) (12300.0) -
-
Kernel
. # at _ exit { . . . } -> Proc (12261.0) -
与えられたブロックをインタプリタ終了時に実行します。
...クをインタプリタ終了時に実行します。
at_exitがメソッドである点を除けば、END ブロックによる終了
処理の登録と同等です。登録した処理を取り消すことはできません。
spec/terminateも参照してください。
@return 登録した処......Proc オブジェクトで返します。
//emlist[例][ruby]{
3.times do |i|
at_exit{puts "at_exit#{i}"}
end
END{puts "END"}
at_exit{puts "at_exit"}
puts "main_end"
#=> main_end
# at_exit
# END
# at_exit2
# at_exit1
# at_exit0
//}
@see d:spec/control#END,Kernel.#exit!,Kernel.#fork... -
IRB
. irb _ at _ exit -> () (12217.0) -
at_exit で登録された処理を実行します。
...
at_exit で登録された処理を実行します。
ユーザが直接使用するものではありません。... -
static VALUE rb
_ thread _ exit(void) (12200.0) -
-
Readline
. # readline(prompt = "" , add _ hist = false) -> String | nil (9224.0) -
prompt を出力し、ユーザからのキー入力を待ちます。 エンターキーの押下などでユーザが文字列を入力し終えると、 入力した文字列を返します。 このとき、add_hist が true であれば、入力した文字列を入力履歴に追加します。 何も入力していない状態で EOF(UNIX では ^D) を入力するなどで、 ユーザからの入力がない場合は nil を返します。
...ます。
エンターキーの押下などでユーザが文字列を入力し終えると、
入力した文字列を返します。
このとき、add_hist が true であれば、入力した文字列を入力履歴に追加します。
何も入力していない状態で EOF(UNIX では ^D)......は行内編集が可能で、vi モードと Emacs モードが用意されています。
デフォルトは Emacs モードです。
@param prompt カーソルの前に表示する文字列を指定します。デフォルトは""です。
@param add_hist 真ならば、入力した文字列を......'readline'
stty_save = `stty -g`.chomp
begin
while buf = Readline.readline
p buf
end
rescue Interrupt
system("stty", stty_save)
exit
end
例: INTシグナルを捕捉して、端末状態を復帰する。
require 'readline'
stty_save = `stty -g`.chomp
trap(... -
Etc
:: SC _ ATEXIT _ MAX -> Integer (9200.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
PTY
:: ChildExited # status -> Process :: Status (9200.0) -
子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。
...子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。... -
Thread
# terminate -> self (9125.0) -
スレッドの実行を終了させます。終了時に ensure 節が実行されます。
...。
ただし、スレッドは終了処理中(aborting)にはなりますが、
直ちに終了するとは限りません。すでに終了している場合は何もしません。このメソッドにより
終了したスレッドの Thread#value の返り値は不定です。
自身がメイ......#exit(0)
により終了します。
Kernel.#exit と違い例外 SystemExit を発生しません。
th1 = Thread.new do
begin
sleep 10
ensure
p "this will be displayed"
end
end
sleep 0.1
th1.kill
#=> "this will be displayed"
@see Kernel.#exit, Kernel.#exit!... -
SystemExit
# status -> Integer (9118.0) -
例外オブジェクトに保存された終了ステータスを返します。
...します。
終了ステータスは Kernel.#exit や SystemExit.new などで設定されます。
例:
begin
exit 1
rescue SystemExit => err
p err.status # => 1
end
begin
raise SystemExit.new(1, "dummy exit")
rescue SystemExit => err
p err.status # => 1
end...