るりまサーチ

最速Rubyリファレンスマニュアル検索!
108件ヒット [1-100件を表示] (0.138秒)

別のキーワード

  1. getoptlong terminate
  2. rubygems/user_interaction terminate_interaction
  3. thread terminate
  4. strscan terminate
  5. _builtin terminate

検索結果

<< 1 2 > >>

Shell::SystemCommand#terminate -> () (18118.0)

@todo

...@todo...

GetoptLong#terminate -> self (18108.0)

オプションの処理を、強制的に終了させます。ただし、エラーが起き ている状態でこのメソッドを起動しても、終了させることはできません。

...ソッドを起動しても、終了させることはできません。

すでにオプションの処理が終了しているときは、このメソッドは何も行いません。

@
raise RuntimeError エラーが起きている状態でこのメソッドを起動すると、発生します...

StringScanner#terminate -> self (15120.0)

スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。

...捨てます。

@
return self を返します。

pos = self.string.size と同じ動作です。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched...
...# => nil
s[0] # => nil
s.pos # => 11
//}

StringScanner#clear は将来のバージョンで削除される予定です。
代わりに StringScanner#terminate を使ってください。...

Thread#terminate -> self (15108.0)

スレッドの実行を終了させます。終了時に ensure 節が実行されます。

...it(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!...

Gem::StreamUI#terminate_interaction(status = 0) -> () (6114.0)

アプリケーションを終了します。

...アプリケーションを終了します。

@
param status 終了ステータスを指定します。デフォルトは 0 (成功) です。

@
raise Gem::SystemExitException このメソッドを呼び出すと必ず発生する例外です。...

絞り込み条件を変える

Gem::UserInteraction#terminate_interaction(*args) -> () (6108.0)

アプリケーションを終了します。

...アプリケーションを終了します。

@
param args 委譲先のメソッドに与える引数です。...

Shell::ProcessController#terminate_job(command) (6108.0)

指定されたコマンドを終了します。

...指定されたコマンドを終了します。

@
param command コマンドを指定します。...

StringScanner#clear -> self (20.0)

スキャンポインタを文字列末尾後まで進め、マッチ記録を捨てます。

...捨てます。

@
return self を返します。

pos = self.string.size と同じ動作です。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new('test string')
s.scan(/\w+/) # => "test"
s.matched # => "test"
s.pos # => 4
s[0] # => "test"
s.terminate
s.matched...
...# => nil
s[0] # => nil
s.pos # => 11
//}

StringScanner#clear は将来のバージョンで削除される予定です。
代わりに StringScanner#terminate を使ってください。...

Thread#exit -> self (8.0)

スレッドの実行を終了させます。終了時に ensure 節が実行されます。

...it(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!...

Thread#kill -> self (8.0)

スレッドの実行を終了させます。終了時に ensure 節が実行されます。

...it(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!...

絞り込み条件を変える

<< 1 2 > >>