204件ヒット
[1-100件を表示]
(0.154秒)
種類
- インスタンスメソッド (60)
- 文書 (60)
- モジュール関数 (36)
- クラス (24)
- 特異メソッド (24)
ライブラリ
- ビルトイン (120)
-
rubygems
/ exceptions (12) -
rubygems
/ source _ index (12)
クラス
-
Gem
:: SourceIndex (12) - SystemExit (36)
- Thread (36)
モジュール
- Kernel (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - SystemExitException (12)
- abort (24)
- exit (24)
- kill (12)
-
load
_ specification (12) - new (12)
-
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) - status (12)
- success? (12)
- terminate (12)
- 制御構造 (12)
- 終了処理 (12)
検索結果
先頭5件
-
SystemExit (44000.0)
-
Ruby インタプリタを終了させるときに発生します。
Ruby インタプリタを終了させるときに発生します。 -
SystemExit
. new(status = 0 , error _ message = "") -> SystemExit (27223.0) -
SystemExit オブジェクトを生成して返します。
...
SystemExit オブジェクトを生成して返します。
@param status 終了ステータスを整数で指定します。
@param error_message エラーメッセージを文字列で指定します。
例:
ex = SystemExit.new(1)
p ex.status # => 1... -
SystemExit
# success? -> bool (27112.0) -
終了ステータスが正常終了を示す値ならば true を返します。
...値ならば true を返します。
大半のシステムでは、ステータス 0 が正常終了を表します。
例:
begin
exit true
rescue SystemExit => err
p err.success? # => true
end
begin
exit false
rescue SystemExit => err
p err.success? # => false
end... -
SystemExit
# status -> Integer (24124.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... -
Gem
:: SystemExitException (15000.0) -
何らかの理由でコマンドを実行出来ない場合に使用する例外です。
何らかの理由でコマンドを実行出来ない場合に使用する例外です。 -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (6206.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
...スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしてい... -
ruby 1
. 8 . 3 feature (6198.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...ruby 1.8.3 feature
*((<ruby 1.8 feature>))
*((<ruby 1.8.2 feature>))
ruby 1.8.2 から ruby 1.8.3 までの変更点です。
掲載方針
*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリ......g]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更もこちら
* [change]: 変更されたク......ize_copy': can't copy singleton class (TypeError)
from -e:1
=== 2005-05-15
: Pathname#unlink [lib] [compat]
ディレクトリへのシンボリックリンクも削除されるようになりました。((<ruby-core:4992>))
=== 2005-05-14
: NameError
: SystemCallError
: SystemExit... -
Kernel
. # exit(status = true) -> () (6118.0) -
Rubyプログラムの実行を終了します。status として整 数が与えられた場合、その値を Ruby コマンドの終了ステータスとします。 デフォルトの終了ステータスは 0(正常終了)です。
...0(正常終了)です。
status が true の場合 0、 false の場合 1 を引数に指定したとみなされます。この値はCレベルの定数
EXIT_SUCCESS、EXIT_FAILURE の値なので、正確には環境依存です。
exit は例外 SystemExit を発生させ
ることによって......begin 節で捕捉することができます。
@param status 終了ステータスを整数か true または false で与えます。
//emlist[例][ruby]{
puts 'start'
begin
puts 'start1...'
exit
rescue SystemExit => err
puts "end1 with #{err.inspect}"
end
begin
puts 'start2...'
exi......t
ensure
puts 'end2...'
end
puts 'end' #実行されない
#=> start
# start1...
# end1 with #<SystemExit: exit>
# start2...
# end2...
#終了ステータス:0
//}
@see Kernel.#exit!,Kernel.#abort, d:spec/control#begin... -
ruby 1
. 8 . 2 feature (6114.0) -
ruby 1.8.2 feature ruby 1.8.2 での ruby 1.8.1 からの変更点です。
...ruby 1.8.2 feature
ruby 1.8.2 での ruby 1.8.1 からの変更点です。
掲載方針
*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリへの単なる定数の追加は収録しない。......* [bug]: バグ修正
* [new]: 追加されたクラス/メソッドなど
* [compat]: 変更されたクラス/メソッドなど
* 互換性のある変更
* only backward-compatibility
* 影響の範囲が小さいと思われる変更
* [change]: 変更されたクラス......23
: Net::IMAP#disconnected? [lib] [new]
: CGI::Session::FileStore#update [lib] [compat]
セッションを保存するファイルの mode をデフォルトで 0600 に
セットするようになりました。
=== 2004-07-16
: ((<SystemExit#success?|SystemExit/success?>)) [ruby] [new]...