ライブラリ
- ビルトイン (104)
- mkmf (48)
-
net
/ http (24) -
net
/ imap (72) -
rdoc
/ generator / json _ index (24) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / which _ command (12) -
rubygems
/ gem _ path _ searcher (96) -
rubygems
/ source _ index (12) -
rubygems
/ source _ info _ cache (48) - strscan (12)
クラス
- Array (44)
-
Encoding
:: Converter (24) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: GemPathSearcher (84) -
Gem
:: SourceIndex (12) -
Gem
:: SourceInfoCache (48) -
Net
:: HTTP (24) -
Net
:: IMAP (72) -
RDoc
:: Generator :: JsonIndex (24) - Range (24)
- String (12)
- StringScanner (12)
モジュール
- Kernel (48)
キーワード
- GemPathSearcher (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
SEARCH
_ INDEX _ FILE (12) - SearchCommand (12)
- WhichCommand (12)
- bsearch (48)
-
bsearch
_ index (20) -
check
_ signedness (24) -
convertible
_ int (24) - convpath (12)
- find (12)
-
find
_ all (12) -
find
_ gems (12) - generate (12)
-
init
_ gemspecs (12) -
lib
_ dirs _ for (12) -
matching
_ file? (12) -
matching
_ files (12) -
net
/ imap (12) - new (12)
- post (24)
- rake (12)
-
rdoc
/ generator / json _ index (12) -
ruby 1
. 6 feature (12) - rubygems (12)
-
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ gem _ path _ searcher (12) -
search
_ convpath (12) -
search
_ full (12) -
search
_ method (12) -
search
_ with _ source (24) - sort (12)
- thread (12)
-
tr
_ s! (12) -
uid
_ search (12) -
uid
_ sort (12) -
uid
_ thread (12)
検索結果
先頭5件
-
Gem
:: GemPathSearcher # matching _ files(spec , path) -> [String] (12200.0) -
与えられた spec に path が含まれている場合、その path のリストを返します。
...与えられた spec に path が含まれている場合、その path のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。
@param path 探索対象のパスを指定します。... -
Range
# bsearch -> Enumerator (12200.0) -
ブロックの評価結果で範囲内の各要素の大小判定を行い、条件を満たす値を二 分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を 返します。
...メソッドはブロックを評価した結果により以下のいずれかのモードで動作し
ます。
* find-minimum モード
* find-any モード
find-minimum モード(特に理由がない限りはこのモードを使う方がいいでしょ
う)では、条件判定の結果を......合: false を返す
ブロックの評価結果が true になる最初の要素を返すか、nil を返します。
//emlist[例][ruby]{
ary = [0, 4, 7, 10, 12]
(0...ary.size).bsearch {|i| ary[i] >= 4 } # => 1
(0...ary.size).bsearch {|i| ary[i] >= 6 } # => 2
(0...ary.size).bsearch {|i| ary[i]......>= 8 } # => 3
(0...ary.size).bsearch {|i| ary[i] >= 100 } # => nil
(0.0...Float::INFINITY).bsearch {|x| Math.log(x) >= 0 } # => 1.0
//}
find-any モードは bsearch(3) のように動作します。ブロックは真偽値
ではなく、以下のような数値を返す必要があります。... -
Range
# bsearch {|obj| . . . } -> object | nil (12200.0) -
ブロックの評価結果で範囲内の各要素の大小判定を行い、条件を満たす値を二 分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を 返します。
...メソッドはブロックを評価した結果により以下のいずれかのモードで動作し
ます。
* find-minimum モード
* find-any モード
find-minimum モード(特に理由がない限りはこのモードを使う方がいいでしょ
う)では、条件判定の結果を......合: false を返す
ブロックの評価結果が true になる最初の要素を返すか、nil を返します。
//emlist[例][ruby]{
ary = [0, 4, 7, 10, 12]
(0...ary.size).bsearch {|i| ary[i] >= 4 } # => 1
(0...ary.size).bsearch {|i| ary[i] >= 6 } # => 2
(0...ary.size).bsearch {|i| ary[i]......>= 8 } # => 3
(0...ary.size).bsearch {|i| ary[i] >= 100 } # => nil
(0.0...Float::INFINITY).bsearch {|x| Math.log(x) >= 0 } # => 1.0
//}
find-any モードは bsearch(3) のように動作します。ブロックは真偽値
ではなく、以下のような数値を返す必要があります。... -
static NODE * search
_ method(VALUE klass , ID id , VALUE *origin) (12200.0) -
クラス klass から id という名前のメソッドエントリを検索し、 返します。見付からなければ NULL を返します。
...クラス klass から id という名前のメソッドエントリを検索し、
返します。見付からなければ NULL を返します。
このメソッドは undef を考慮しません。つまり m_tbl に
エントリがあるならその内容に関らず探索は成功します。... -
rubygems
/ commands / lock _ command (12018.0) -
指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
...存する Gem を使用するために
必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。
Usage: gem lock GEMNAME-VERSION [GEMNAME-VERSION ...] [options]
Options:
-s, --[no-]strict 依存関係を満たせない場合に失敗します......た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME ロックする Gem パッケージの名前......ock command will generate a list of +gem+ statements that will lock
down
the versions for the gem given in the command line. It will specify exact
versions in the requirements list to ensure that the gems loaded will always
be consistent. A full recursive search of all effe... -
Gem
:: GemPathSearcher (12000.0) -
Gem パッケージに含まれているファイルのうちロード可能なものを検索するためのクラスです。
Gem パッケージに含まれているファイルのうちロード可能なものを検索するためのクラスです。 -
rubygems
/ gem _ path _ searcher (12000.0) -
Gem パッケージに含まれているファイルのうちロード可能なものを検索するためのライブラリです。
Gem パッケージに含まれているファイルのうちロード可能なものを検索するためのライブラリです。 -
RDoc
:: Generator :: JsonIndex # generate -> () (9116.0) -
解析した情報を RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE に出 力します。
...解析した情報を RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE に出
力します。... -
Gem
:: GemPathSearcher # find _ all(path) -> [Gem :: Specification] (9100.0) -
与えられたパスにマッチする Gem::Specification を全て返します。
...与えられたパスにマッチする Gem::Specification を全て返します。
@see Enumerable#find_all...