るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. _builtin inspect
  2. csv inspect
  3. inspect _builtin
  4. matrix inspect
  5. set inspect

ライブラリ

クラス

モジュール

オブジェクト

キーワード

検索結果

ENV.inspect -> String (54355.0)

ENV オブジェクトを文字列化します。 Hash#inspect と同じように動作します。

ENV オブジェクトを文字列化します。 Hash#inspect と同じように動作します。

main.inspect -> "main" (54307.0)

"main" を返します。

"main" を返します。

IRB::Inspector.keys_with_inspector(inspector) -> Array (27640.0)

引数で指定した IRB::Inspector に対応する key の配列を返します。

引数で指定した IRB::Inspector に対応する key の配列を返します。

@param inspector IRB::Inspector オブジェクトを指定します。

IRB::Inspector.keys_with_inspector(IRB::Inspector::INSPECTORS[true])
# => [true, :p, "p", :inspect, "inspect"]

IRB::Inspector.def_inspector(key, arg = nil) { |v| ... } -> object (27394.0)

新しい実行結果の出力方式を定義します。

新しい実行結果の出力方式を定義します。

@param key conf.inspect_mode や IRB.conf[:INSPECT_MODE] に指定するキー
オブジェクトを指定します。配列を指定した場合は配列中の要素全
てが対象になります。

@param arg ブロックを指定する場合には、inspect_mode の初期化のための手続
きオブジェクトを指定します。あらかじめ require が必要な場合
などに、proc { require "foo" } といった指定を行います。
...

IRB.Inspector(inspect, init = nil) -> IRB::Inspector (18943.0)

IRB::Inspector オブジェクトを生成します。

IRB::Inspector オブジェクトを生成します。

@param inspect 実行結果の出力のための手続きオブジェクトを指定します。

@param init inspect_mode の初期化のための手続きオブジェクトを指定します。
あらかじめ require が必要な場合などに、proc { require "foo" }
といった指定を行います。

絞り込み条件を変える

main.to_s -> "main" (9007.0)

"main" を返します。

"main" を返します。

Addrinfo.new(sockaddr, family=Socket::PF_UNSPEC, socktype=0, protocol=0) -> Addrinfo (22.0)

新たな Addrinfo オブジェクトを返します。

新たな Addrinfo オブジェクトを返します。

sockaddr は connect(2) などで使われるパラメータで、
struct sockaddr に対応します。faimily, socktype, protocol
は socket(2) のパラメータに対応します。

sockaddr には文字列もしくは配列を指定します。
配列の場合は IPSocket#addr や UNIXSocket#addr の
値と互換でなければなりません。
文字列の場合は Socket.sockaddr_in や
Socket.unpack_sockaddr_un で得られるようなものでなければ
な...

Shell.debug=(val) (22.0)

デバッグ用のフラグを設定します。

デバッグ用のフラグを設定します。

@param val bool 値や整数値を指定します。詳細は下記を参照してください。

# debug: true -> normal debug
# debug: 1 -> eval definition debug
# debug: 2 -> detail inspect debug

ThreadsWait.all_waits(*threads) -> () (22.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| ...} -> () (22.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.new(*threads) -> ThreadsWait (22.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)
}

...