別のキーワード
ライブラリ
- ビルトイン (10)
- drb (2)
-
irb
/ cmd / chws (2) - json (2)
- rake (1)
-
rubygems
/ dependency (1) -
rubygems
/ platform (1) -
rubygems
/ specification (1) - socket (8)
-
win32
/ registry (20)
クラス
- Data (2)
-
Gem
:: Dependency (1) -
Gem
:: Platform (1) -
Gem
:: Specification (1) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (1) -
JSON
:: State (2) - Socket (4)
- Thread (6)
-
Win32
:: Registry (11)
モジュール
- DRb (2)
- Process (1)
-
Rake
:: TaskManager (1) -
Socket
:: Constants (4) -
Win32
:: Registry :: Constants (9)
キーワード
-
CURRENT
_ SPECIFICATION _ VERSION (1) - CurrentWorkingWorkspace (1)
-
HKEY
_ CLASSES _ ROOT (2) -
HKEY
_ CURRENT _ CONFIG (2) -
HKEY
_ CURRENT _ USER (2) -
HKEY
_ DYN _ DATA (2) -
HKEY
_ LOCAL _ MACHINE (2) -
HKEY
_ PERFORMANCE _ DATA (2) -
HKEY
_ PERFORMANCE _ NLSTEXT (2) -
HKEY
_ PERFORMANCE _ TEXT (2) -
HKEY
_ USERS (2) -
IPV6
_ PATHMTU (2) -
IPV6
_ RECVPATHMTU (2) -
IP
_ IPSEC _ POLICY (2) -
MSG
_ RCVMORE (2) -
NEWS for Ruby 3
. 0 . 0 (1) - TYPES (1)
- ThreadGroup (1)
-
buffer
_ initial _ length (1) - config (1)
-
current
_ scope (1) - define (2)
- depth (1)
- exec (1)
- execute (1)
- group (1)
- inspect (1)
- name (1)
- priority (1)
-
ruby 1
. 6 feature (1) -
rubygems
/ commands / lock _ command (1) - status (1)
-
thread
_ variable _ get (1) -
to
_ s (2) - uri (1)
-
win32
/ registry (1) - パターンマッチ (1)
検索結果
先頭5件
-
Gem
:: Platform :: CURRENT -> String (63604.0) -
特定のプラットフォーム向けの Gem をビルドするときに使用します。
特定のプラットフォーム向けの Gem をビルドするときに使用します。 -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (36049.0) -
irb 中の irb_current_working_workspace コマンドのための拡張を定義したク ラスです。
irb 中の irb_current_working_workspace コマンドのための拡張を定義したク
ラスです。 -
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 -
Rake
:: TaskManager # current _ scope -> Array (27322.0) -
現在のスコープを返します。
現在のスコープを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.current_scope # => LL()
end
//} -
Gem
:: Specification :: CURRENT _ SPECIFICATION _ VERSION -> 2 (27304.0) -
現在の gemspec のバージョンを表す定数です。
現在の gemspec のバージョンを表す定数です。 -
Thread
# group -> ThreadGroup (18619.0) -
スレッドが属している ThreadGroup オブジェクトを返します。
スレッドが属している ThreadGroup オブジェクトを返します。
p Thread.current.group == ThreadGroup::Default
# => true -
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 -
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 ... -
JSON
:: State # buffer _ initial _ length -> Integer (18349.0) -
This integer returns the current initial length of the buffer.
This integer returns the current initial length of the buffer. -
Socket
:: Constants :: MSG _ RCVMORE -> Integer (18349.0) -
@todo Data remains in the current packet
@todo
Data remains in the current packet -
Socket
:: MSG _ RCVMORE -> Integer (18349.0) -
@todo Data remains in the current packet
@todo
Data remains in the current packet -
DRb
. # config -> { Symbol => Object } (18319.0) -
カレントサーバの設定を返します。
カレントサーバの設定を返します。
カレントサーバが存在しない場合は、デフォルトの設定を返します。
@see DRb.#current_server -
Win32
:: Registry :: Constants :: HKEY _ CURRENT _ USER (18307.0) -
@todo
@todo
定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。 -
ThreadGroup (18055.0)
-
スレッドグループを表すクラスです。グループに属する Thread をまとめて 操作することができます。
スレッドグループを表すクラスです。グループに属する Thread をまとめて
操作することができます。
Thread は必ずいずれかひとつのスレッドグループに属します。
生成されたばかりの Thread は、生成した Thread のグループを引き継ぎます。
メインスレッドはデフォルトでは ThreadGroup::Default に属します。
: 例:
生成したすべてのThreadが終了するのを待つ
5.times {
Thread.new { sleep 1; puts "#{Thread.current} finished" }
}
... -
rubygems
/ commands / lock _ command (18019.0) -
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために
必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
Usage: gem lock GEMNAME-VERSION [GEMNAME-VERSION ...] [options]
Options:
-s, --[no-]strict 依存関係を満たせない場合に失敗します
Common Options:
-h, --help このコマンドのヘルプを表示します
... -
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] ... -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace # execute(*obj) -> obj (18001.0) -
irb の self を返します。
irb の self を返します。
@param obj 使用しません。 -
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 _ LOCAL _ MACHINE -> 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 -
パターンマッチ (9067.0)
-
パターンマッチ * patterns * variable_binding * variable_pinning * matching_non_primitive_objects * guard_clauses * current_feature_status * pattern_syntax * some_undefined_behavior_examples
パターンマッチ
* patterns
* variable_binding
* variable_pinning
* matching_non_primitive_objects
* guard_clauses
* current_feature_status
* pattern_syntax
* some_undefined_behavior_examples
パターンマッチは、構造化された値に対して、構造をチェックし、マッチした部分をローカル変数に束縛するという、深いマッチを可能にする機能です。(『束縛』は、パターンマッチの輸入元である関数型言語の用語で... -
Gem
:: Dependency :: TYPES -> Array (9019.0) -
有効な依存関係の型を表す配列です。
有効な依存関係の型を表す配列です。
@see Gem::Specification::CURRENT_SPECIFICATION_VERSION -
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 _ LOCAL _ MACHINE (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 オブジェクトではありません。 -
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 :: IPV6 _ PATHMTU -> Integer (349.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 (349.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 (349.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 (349.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 -
Data
. define(*args) -> Class (337.0) -
Data クラスに新しいサブクラスを作って、それを返します。
Data クラスに新しいサブクラスを作って、それを返します。
サブクラスでは値オブジェクトのメンバに対するアクセスメソッドが定義されています。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)
p fred.name # => "Fred"
p fred.age # => 5
//}
メンバの値を書き換えることはできません。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)
fre... -
Data
. define(*args) {|subclass| block } -> Class (337.0) -
Data クラスに新しいサブクラスを作って、それを返します。
Data クラスに新しいサブクラスを作って、それを返します。
サブクラスでは値オブジェクトのメンバに対するアクセスメソッドが定義されています。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)
p fred.name # => "Fred"
p fred.age # => 5
//}
メンバの値を書き換えることはできません。
//emlist[例][ruby]{
Dog = Data.define(:name, :age)
fred = Dog.new("Fred", 5)
fre... -
DRb
. # uri -> String (319.0) -
カレントサーバに紐付けられた URI を返します。
カレントサーバに紐付けられた URI を返します。
@see DRb.#current_server -
Process
. exec(command , *args) -> () (319.0) -
カレントプロセスを与えられた外部コマンドで置き換えます。
カレントプロセスを与えられた外部コマンドで置き換えます。
=== 引数の解釈
引数が一つだけ与えられた場合、command が shell のメタ文字
//emlist{
* ? {} [] <> () ~ & | \ $ ; ' ` " \n
//}
を含む場合、shell 経由で実行されます。
そうでなければインタプリタから直接実行されます。
引数が複数与えられた場合、第 2 引数以降は command に直接渡され、
インタプリタから直接実行されます。
第 1 引数が 2 要素の配列の場合、第 1 要素の文字列が実際に起動する
プログラムのパスで、第 2 要素が「みせかけ... -
Socket
:: Constants :: IP _ IPSEC _ POLICY -> Integer (319.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 (319.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 -
Thread
# inspect -> String (319.0) -
自身を人間が読める形式に変換した文字列を返します。
自身を人間が読める形式に変換した文字列を返します。
//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//} -
Thread
# priority -> Integer (319.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
# 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 ... -
Thread
# to _ s -> String (319.0) -
自身を人間が読める形式に変換した文字列を返します。
自身を人間が読める形式に変換した文字列を返します。
//emlist[例][ruby]{
a = Thread.current
a.inspect # => "#<Thread:0x00007fdbaf07ddb0 run>"
b = Thread.new{}
b.inspect # => "#<Thread:0x00007fdbaf8f7d10@(irb):3 dead>"
//} -
ruby 1
. 6 feature (73.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 がなくなっ
ていま... -
NEWS for Ruby 3
. 0 . 0 (55.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
NEWS for Ruby 3.0.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストはリンク先を参照してください。
== 言語仕様の変更
* Keyword arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in Argum...