るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
82件ヒット [1-82件を表示] (0.087秒)
トップページ > クエリ:I[x] > クエリ:CURRENT[x] > バージョン:2.6.0[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

検索結果

IRB::ExtendCommand::CurrentWorkingWorkspace (96049.0)

irb 中の irb_current_working_workspace コマンドのための拡張を定義したク ラスです。

irb 中の irb_current_working_workspace コマンドのための拡張を定義したク
ラスです。

IRB.CurrentContext -> IRB::Context (87601.0)

現在の irb に関する IRB::Context を返します。

現在の irb に関する IRB::Context を返します。

IRB::ExtendCommandBundle.install_extend_commands -> object (78319.0)

定義済みの拡張を読み込みます。

定義済みの拡張を読み込みます。

irb で以下のメソッドが利用できるようになります。(それぞれ 1 つだけ抜粋)

* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help

irb/extend-command が requir...

IRB::ExtendCommand::CurrentWorkingWorkspace#execute(*obj) -> obj (78001.0)

irb の self を返します。

irb の self を返します。

@param obj 使用しません。

IRB::Context#thread -> Thread (69019.0)

現在のスレッドを返します。

現在のスレッドを返します。

@see Thread.current

絞り込み条件を変える

Gem::Platform::CURRENT -> String (54604.0)

特定のプラットフォーム向けの Gem をビルドするときに使用します。

特定のプラットフォーム向けの Gem をビルドするときに使用します。

Gem::Specification::CURRENT_SPECIFICATION_VERSION -> 2 (45604.0)

現在の gemspec のバージョンを表す定数です。

現在の gemspec のバージョンを表す定数です。

RDoc::Context#current_section -> RDoc::Context::Section (36904.0)

現在の section を返します。

現在の section を返します。

Socket::Constants::IP_IPSEC_POLICY -> Integer (36619.0)

IPsec security policy。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

IPsec security policy。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IP,
http://netbsd.gw.com/cgi-bin/man-cgi?ip++NetBSD-current

Socket::IP_IPSEC_POLICY -> Integer (36619.0)

IPsec security policy。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

IPsec security policy。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IP,
http://netbsd.gw.com/cgi-bin/man-cgi?ip++NetBSD-current

絞り込み条件を変える

RDoc::Context#set_current_section(title, comment) -> () (36604.0)

Handle sections

Handle sections

Fiber.current -> Fiber (27658.0)

このメソッドが評価されたコンテキストにおける Fiber のインスタンスを返します。

このメソッドが評価されたコンテキストにおける Fiber のインスタンスを返します。

//emlist[例:][ruby]{
fr = Fiber.new do
Fiber.current
end

fb = fr.resume
p fb.equal?(fr) # => true

p Fiber.current # => #<Fiber:0x91345e4>
p Fiber.current # => #<Fiber:0x91345e4>
//}

Win32::Registry::Constants::HKEY_CURRENT_CONFIG (27607.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

Win32::Registry::HKEY_CURRENT_CONFIG -> Win32::Registry (27607.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

ThreadsWait#all_waits -> () (27337.0)

指定されたスレッドすべてが終了するまで待ちます。 ブロックが与えられた場合、スレッド終了時にブロックを評価します。

指定されたスレッドすべてが終了するまで待ちます。
ブロックが与えられた場合、スレッド終了時にブロックを評価します。

使用例
require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new(*threads)
thall.all_waits{|th|
printf("end %s\n", th.inspect)
}

# 出力例
#=> #<Thread...

絞り込み条件を変える

ThreadsWait#join_nowait(*threads) -> () (27337.0)

終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。 しかし、実際には終了をまちません。

終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。
しかし、実際には終了をまちません。

@param threads 複数スレッドの終了を待つスレッドに指定されたthreadsを加えます。

require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new
p thall.threads #=> []
thall.join_nowait(*thr...

ThreadsWait.all_waits(*threads) -> () (27337.0)

指定されたスレッドすべてが終了するまで待ちます。 ブロックが与えられた場合、スレッド終了時にブロックを評価します。

指定されたスレッドすべてが終了するまで待ちます。
ブロックが与えられた場合、スレッド終了時にブロックを評価します。

@param threads 終了するまでまつスレッドを一つもしくは複数指定します。

require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
ThreadsWait.all_waits(*threads) {|th| printf("end %s\n", th.inspect) }

# 出力例
#=...

ThreadsWait.all_waits(*threads) {|thread| ...} -> () (27337.0)

指定されたスレッドすべてが終了するまで待ちます。 ブロックが与えられた場合、スレッド終了時にブロックを評価します。

指定されたスレッドすべてが終了するまで待ちます。
ブロックが与えられた場合、スレッド終了時にブロックを評価します。

@param threads 終了するまでまつスレッドを一つもしくは複数指定します。

require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
ThreadsWait.all_waits(*threads) {|th| printf("end %s\n", th.inspect) }

# 出力例
#=...

Monitor#exit -> () (27319.0)

MonitorMixin#mon_exit の別名です。

MonitorMixin#mon_exit の別名です。

enter でロックした回数だけ exit を呼ばなければモニターは解放されません。

モニターが解放されればモニターのロック待ちになっていた
スレッドが一つ実行を再開します。

@raise ThreadError ロックを持っていないスレッドが呼びだした場合に発生します

//emlist[例][ruby]{
require 'monitor'
mon = Monitor.new
mon.enter
mon.enter
mon.exit
mon.exit
mon.exit # => current thread not owner...

JSON::State#buffer_initial_length -> Integer (18649.0)

This integer returns the current initial length of the buffer.

This integer returns the current initial length of the buffer.

絞り込み条件を変える

Thread#inspect -> String (18619.0)

自身を人間が読める形式に変換した文字列を返します。

自身を人間が読める形式に変換した文字列を返します。

//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//}

Win32::Registry::HKEY_CURRENT_USER -> Win32::Registry (18607.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

Win32::Registry::HKEY_LOCAL_MACHINE -> Win32::Registry (18607.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

OpenSSL::X509::StoreContext#current_cert -> OpenSSL::X509::Certificate (18604.0)

直前に検証した証明書のオブジェクトを返します。

直前に検証した証明書のオブジェクトを返します。

OpenSSL::X509::StoreContext#verify で検証が失敗した場合は
証明書チェイン中で検証に失敗した証明書のオブジェクトを返します。

証明書チェインの各証明書検証後
コールバック(OpenSSL::X509::Store#verify_callback=)呼び出しに
渡される StoreContext オブジェクトにこのメソッドを呼び出すと
直前に検証した証明書を返します。

OpenSSL::X509::StoreContext#verify を呼ぶ前に
このメソッドを呼ぶと空の OpenSSL::X509::Ce...

OpenSSL::X509::StoreContext#current_crl -> OpenSSL::X509::CRL | nil (18604.0)

直前に検証に利用した CRL のオブジェクトを返します。

直前に検証に利用した CRL のオブジェクトを返します。

証明書チェインの各証明書検証後
コールバック(OpenSSL::X509::Store#verify_callback=)呼び出しに
渡される StoreContext オブジェクトにこのメソッドを呼び出すと
直前に検証に利用した CRL オブジェクトを返します。

絞り込み条件を変える

VALUE rb_thread_current(void) (18601.0)

現在実行中のスレッドを返します。

現在実行中のスレッドを返します。

Thread#thread_variable_get(key) -> object | nil (18373.0)

引数 key で指定した名前のスレッドローカル変数を返します。

引数 key で指定した名前のスレッドローカル変数を返します。

[注意]: Thread#[] でセットしたローカル変数(Fiber ローカル変数)と
異なり、Fiber を切り替えても同じ変数を返す事に注意してください。

例:

Thread.new {
Thread.current.thread_variable_set("foo", "bar") # スレッドローカル
Thread.current["foo"] = "bar" # Fiber ローカル

Fiber.new {
Fiber.yield ...

Socket::Constants::IPV6_PATHMTU -> Integer (18349.0)

Retrieve current path MTU。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Retrieve current path MTU。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542

Socket::Constants::IPV6_RECVPATHMTU -> Integer (18349.0)

Receive current path MTU with datagram。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Receive current path MTU with datagram。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542

Socket::IPV6_PATHMTU -> Integer (18349.0)

Retrieve current path MTU。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Retrieve current path MTU。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542

絞り込み条件を変える

Socket::IPV6_RECVPATHMTU -> Integer (18349.0)

Receive current path MTU with datagram。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

Receive current path MTU with datagram。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542

Thread#thread_variable_set(key, value) (18337.0)

引数 key で指定した名前のスレッドローカル変数に引数 value をセットしま す。

引数 key で指定した名前のスレッドローカル変数に引数 value をセットしま
す。

[注意]: Thread#[] でセットしたローカル変数(Fiber ローカル変数)と
異なり、セットした変数は Fiber を切り替えても共通で使える事に注意してく
ださい。

//emlist[例][ruby]{
thr = Thread.new do
Thread.current.thread_variable_set(:cat, 'meow')
Thread.current.thread_variable_set("dog", 'woof')
end
thr.join ...

ThreadsWait#finished? -> bool (18337.0)

すでに終了したスレッドが存在すれば true を返します。

すでに終了したスレッドが存在すれば true を返します。

使用例
require 'thwait'

threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new(*threads)
p thall.finished? #=> false
sleep 3
p thall.finished? #=> true

ThreadsWait#join(*threads) -> () (18337.0)

終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。

終了を待つスレッドの対象として、threads で指定されたスレッドを指定します。

@param threads 複数スレッドの終了を待つスレッドに指定されたthreadsを加えます。

require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new
p thall.threads #=> []
thall.join(*threads)
p thall.threads
...

DRb.#config -> { Symbol => Object } (18319.0)

カレントサーバの設定を返します。

カレントサーバの設定を返します。

カレントサーバが存在しない場合は、デフォルトの設定を返します。

@see DRb.#current_server

絞り込み条件を変える

DRb.#uri -> String (18319.0)

カレントサーバに紐付けられた URI を返します。

カレントサーバに紐付けられた URI を返します。

@see DRb.#current_server

OpenSSL::X509::StoreContext#verify -> bool (18319.0)

証明書を検証します。

証明書を検証します。

OpenSSL::X509::StoreContext.new で設定した証明書を検証します。
検証に成功した場合は true を、失敗した場合は false を返します。

検証の詳細な情報は
* OpenSSL::X509::StoreContext#error
* OpenSSL::X509::StoreContext#error_string
* OpenSSL::X509::StoreContext#chain
* OpenSSL::X509::StoreContext#current_crl

Thread#alive? -> bool (18319.0)

スレッドが「生きている」時、true を返します。

スレッドが「生きている」時、true を返します。

例:
thr = Thread.new { }
thr.join # => #<Thread:0x401b3fb0 dead>
Thread.current.alive? # => true
thr.alive? # => false

Thread#status が真を返すなら、このメソッドも真です。

@see Thread#status, Thread#stop?

Thread#priority -> Integer (18319.0)

スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。

スレッドの優先度を返します。この値が大きいほど優先度が高くなります。
メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの
priority を引き継ぎます。

@param val スレッドの優先度を指定します。プラットフォームに依存します。

//emlist[例][ruby]{
Thread.current.priority # => 0

count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1

b = Thread.new do
...

Thread#priority=(val) (18319.0)

スレッドの優先度を返します。この値が大きいほど優先度が高くなります。 メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの priority を引き継ぎます。

スレッドの優先度を返します。この値が大きいほど優先度が高くなります。
メインスレッドのデフォルト値は 0 です。新しく生成されたスレッドは親スレッドの
priority を引き継ぎます。

@param val スレッドの優先度を指定します。プラットフォームに依存します。

//emlist[例][ruby]{
Thread.current.priority # => 0

count1 = count2 = 0
a = Thread.new do
loop { count1 += 1 }
end
a.priority = -1

b = Thread.new do
...

絞り込み条件を変える

Thread#thread_variable?(key) -> bool (18319.0)

引数 key で指定した名前のスレッドローカル変数が存在する場合に true、そ うでない場合に false を返します。

引数 key で指定した名前のスレッドローカル変数が存在する場合に true、そ
うでない場合に false を返します。

@param key 変数名を String か Symbol で指定します。

me = Thread.current
me.thread_variable_set(:oliver, "a")
me.thread_variable?(:oliver) # => true
me.thread_variable?(:stanley) # => false

[注意]: Thread#[] でセットしたローカル変数(Fiber ローカル...

Thread.report_on_exception -> bool (18319.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

デフォルトは true です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: fro...

Thread.report_on_exception=(newstate) (18319.0)

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。

デフォルトは true です。

Thread.new { 1.times { raise } }

は $stderr に以下のように出力します:

#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block in <main>'
1: fro...

Win32::Registry::Constants::HKEY_CURRENT_USER (18307.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

Win32::Registry::Constants::HKEY_LOCAL_MACHINE (18307.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

絞り込み条件を変える

irb (18271.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロンプトが表れます。

$ irb
irb(main):001:0>

あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。

irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def f...

irb/cmd/chws (18049.0)

irb 中の irb_current_working_workspace、irb_change_workspace コマンドの ための拡張を定義したサブライブラリです。

irb 中の irb_current_working_workspace、irb_change_workspace コマンドの
ための拡張を定義したサブライブラリです。

このライブラリで定義されているメソッドはユーザが直接使用するものではあ
りません。

Continuation (18019.0)

継続を表すクラスです。

継続を表すクラスです。

Kernel.#callcc { |cont| ... } の呼び出し
は、直前の状態(ローカル変数の定義、スタックフレーム)を cont に記憶
してブロックを実行します。cont は、Continuation クラスのインスタ
ンスで、Continuation#call メソッドを実行するこ
とでいつでも記憶した状態を継続することができます。

C 言語の setjmp()/longjmp() がわかる人は
setjmp() == callcc {|c| }
longjmp() == c.call
と考えれば、わかりやすいかも知れません(ただし、callc...

win32/registry (18019.0)

win32/registry は Win32 プラットフォームでレジストリをアクセスするための ライブラリです。Win32 API の呼び出しに Win32API を使います。

win32/registry は Win32 プラットフォームでレジストリをアクセスするための
ライブラリです。Win32 API の呼び出しに Win32API を使います。

//emlist{
require 'win32/registry'

Win32::Registry::HKEY_CURRENT_USER.open('SOFTWARE\foo') do |reg|
value = reg['foo'] # 値の読み込み
value = reg['foo', Win32::Registry::REG_SZ] ...

ThreadsWait.new(*threads) -> ThreadsWait (9337.0)

指定されたスレッドの終了をまつための、スレッド同期オブジェクトをつくります。

指定されたスレッドの終了をまつための、スレッド同期オブジェクトをつくります。

@param threads 終了を待つスレッドを一つもしくは複数指定します。

使用例
require 'thwait'

threads = []
5.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new(*threads)
thall.all_waits{|th|
printf("end %s\n", th.inspect)
}

...

絞り込み条件を変える

Thread#to_s -> String (9319.0)

自身を人間が読める形式に変換した文字列を返します。

自身を人間が読める形式に変換した文字列を返します。

//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//}

Win32::Registry::HKEY_CLASSES_ROOT -> Win32::Registry (9307.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

Win32::Registry::HKEY_DYN_DATA -> Win32::Registry (9307.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

Win32::Registry::HKEY_PERFORMANCE_DATA -> Win32::Registry (9307.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

Win32::Registry::HKEY_PERFORMANCE_NLSTEXT -> Win32::Registry (9307.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

絞り込み条件を変える

Win32::Registry::HKEY_PERFORMANCE_TEXT -> Win32::Registry (9307.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

Win32::Registry::HKEY_USERS -> Win32::Registry (9307.0)

@todo

@todo

それぞれの定義済キーを表す Win32::Registry オブジェクトです。

詳細は以下の MSDN Library を参照してください。

* Predefined Keys: http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp

ThreadsWait#empty? -> bool (9037.0)

同期されるスレッドが存在するならば true をかえします。

同期されるスレッドが存在するならば true をかえします。

使用例
require 'thwait'

threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new
p thall.threads.empty? #=> true
thall.join(*threads)
p thall.threads.empty? #=> false

ThreadsWait#threads -> Array (9037.0)

同期されるスレッドの一覧を配列で返します。

同期されるスレッドの一覧を配列で返します。

使用例
require 'thwait'

threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}

thall = ThreadsWait.new(*threads)
p thall.threads
#=> [#<Thread:0x21750 sleep>, #<Thread:0x216c4 sleep>, #<Thread:0x21638 sleep>]

Win32::Registry#name (9019.0)

@todo

@todo

キーのフルパスを 'HKEY_CURRENT_USER\SOFTWARE\foo\bar'
のような形で返します。

絞り込み条件を変える

Win32::Registry#to_s (9019.0)

@todo

@todo

キーのフルパスを 'HKEY_CURRENT_USER\SOFTWARE\foo\bar'
のような形で返します。

Win32::Registry::Constants::HKEY_CLASSES_ROOT (9007.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

Win32::Registry::Constants::HKEY_DYN_DATA (9007.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

Win32::Registry::Constants::HKEY_PERFORMANCE_DATA (9007.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

Win32::Registry::Constants::HKEY_PERFORMANCE_NLSTEXT (9007.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

絞り込み条件を変える

Win32::Registry::Constants::HKEY_PERFORMANCE_TEXT (9007.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

Win32::Registry::Constants::HKEY_USERS (9007.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

ruby 1.6 feature (3169.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

ruby 1.6 feature
ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン
になります。

((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。

== 1.6.8 (2002-12-24) -> stable-snapshot

: 2003-01-22: errno

EAGAIN と EWOULDBLOCK が同じ値のシステムで、EWOULDBLOCK がなくなっ
ていま...

Thread#[](name) -> object | nil (427.0)

name に対応したスレッドに固有のデータを取り出します。 name に対応するスレッド固有データがなければ nil を返し ます。

name に対応したスレッドに固有のデータを取り出します。
name に対応するスレッド固有データがなければ nil を返し
ます。

@param name スレッド固有データのキーを文字列か Symbol で指定します。

//emlist[例][ruby]{
[
Thread.new { Thread.current["name"] = "A" },
Thread.new { Thread.current[:name] = "B" },
Thread.new { Thread.current["name"] = "C" }
].each do |th|
th.join...

ruby 1.8.4 feature (415.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

ruby 1.8.4 feature
ruby 1.8.4 での ruby 1.8.3 からの変更点です。

掲載方針

*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリへの単なる定数の追加は収録しない。

以下は各変更点に付けるべきタグです。

記号について(特に重要なものは大文字(主観))

# * カテゴリ
# * [ruby]: ruby インタプリタの変更
# * [api]: 拡張ライブラリ API
# * [lib]: ライブラリ
* レベル
* [bug]: バグ修正
* [new]: 追加され...

絞り込み条件を変える

Thread#set_trace_func(pr) -> Proc | nil (355.0)

スレッドにトレース用ハンドラを設定します。

スレッドにトレース用ハンドラを設定します。

nil を渡すとトレースを解除します。

設定したハンドラを返します。

//emlist[例][ruby]{
th = Thread.new do
class Trace
end
2.to_s
Thread.current.set_trace_func nil
3.to_s
end
th.set_trace_func lambda {|*arg| p arg }
th.join

# => ["line", "example.rb", 2, nil, #<Binding:0x00007fc8de87cb08>, nil]
#...

JSON::State#depth -> Integer (349.0)

This integer returns the current depth of data structure nesting.

This integer returns the current depth of data structure nesting.

Socket::Constants::MSG_RCVMORE -> Integer (349.0)

@todo Data remains in the current packet

@todo
Data remains in the current packet

Socket::MSG_RCVMORE -> Integer (349.0)

@todo Data remains in the current packet

@todo
Data remains in the current packet

DRb.#here?(uri) -> bool (319.0)

uri がカレントサーバに紐付けられたものであれば真を返します。

uri がカレントサーバに紐付けられたものであれば真を返します。

@see DRb.#current_server

絞り込み条件を変える

Kernel$$SAFE -> Integer (319.0)

カレントプロセスのセーフレベルを表す整数です。

カレントプロセスのセーフレベルを表す整数です。

セーフレベルについてはspec/safelevel を参照してください。

Thread.current.safe_level と同じです。
非整数を代入しようとすると TypeError が発生します。

この変数はグローバルスコープです。
Ruby起動時の初期値は 0 です。

Thread#fetch(name, default = nil) {|name| ... } -> object (319.0)

name に関連づけられたスレッドに固有のデータを返します。 name に対応するスレッド固有データがない時には、引数 default が 与えられていればその値を、ブロックが与えられていれば そのブロックを評価した値を返します。

name に関連づけられたスレッドに固有のデータを返します。
name に対応するスレッド固有データがない時には、引数 default が
与えられていればその値を、ブロックが与えられていれば
そのブロックを評価した値を返します。

@param name スレッド固有データのキーを文字列か Symbol で指定します。
@param default name に対応するスレッド固有データがない時の返り値を指定します。
@raise KeyError 引数defaultもブロックも与えられてない時、
name に対応するスレッド固有データがないと発生します。
...

Thread#safe_level -> Integer (319.0)

セーフレベルを返します。

セーフレベルを返します。

Ruby 2.6 から$SAFEがプロセスグローバルになったため、このメソッドは obsolete になりました。
単純に $SAFE をチェックしてください。

セーフレベルについてはspec/safelevelを参照してください。

//emlist[例][ruby]{
thr = Thread.new { $SAFE = 1; sleep }
Thread.current.safe_level # => 0
thr.safe_level # => 1
//}

Thread#status -> String | false | nil (319.0)

生きているスレッドの状態を文字列 "run"、"sleep", "aborting" のいず れかで返します。正常終了したスレッドに対して false、例外によ り終了したスレッドに対して nil を返します。

生きているスレッドの状態を文字列 "run"、"sleep", "aborting" のいず
れかで返します。正常終了したスレッドに対して false、例外によ
り終了したスレッドに対して nil を返します。

Thread#alive? が真を返すなら、このメソッドも真です。

例:
a = Thread.new { raise("die now") }
b = Thread.new { Thread.stop }
c = Thread.new { Thread.exit }
d = Thread.new { sleep }
d.kill ...

NEWS for Ruby 2.1.0 (109.0)

NEWS for Ruby 2.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

NEWS for Ruby 2.1.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。

== 2.0.0 以降の変更

=== 言語仕様の変更

* キーワード引数のデフォルト値が省略可能になりました。これらの「必須キーワード引数」は呼び出し時に明示的に与えなければなりません。

* 整数や小数のリテラルの末尾に'r','i','...

絞り込み条件を変える

rdoc (73.0)

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。

RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という
ドキュメント生成のためのコマンドも含んでいます。

このパッケージは RDoc と Markup というふたつのコンポーネントを含
んでいます。 RDoc とは Ruby のソースファイルに対するドキュメントを生成
するアプリケーションです。 JavaDoc と同様に、ソースを解析し、クラス、モ
ジュール、メソッドの定義を抜き出してきます(include,require もです)。そ
してこれらの内容とその直前に書かれたコメントを併合し、ドキュメントを出
力します(現在は HTML しか出力できませんが、こ...

NEWS for Ruby 2.0.0 (55.0)

NEWS for Ruby 2.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

NEWS for Ruby 2.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。

== 1.9.3 以降の変更

=== 言語仕様の変更

* キーワード引数を追加しました
* %i, %I をシンボルの配列作成のために追加しました。(%w, %W に似ています)
* デフォルトのソースエンコーディングを US-ASCI...