ライブラリ
- ビルトイン (95)
- mkmf (22)
-
net
/ http (22) -
net
/ imap (66) -
rdoc
/ generator / json _ index (22) - resolv (11)
-
rubygems
/ commands / dependency _ command (11) -
rubygems
/ commands / which _ command (11) -
rubygems
/ gem _ path _ searcher (66) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (44) - strscan (11)
- uri (11)
クラス
- Array (40)
-
Encoding
:: Converter (22) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: GemPathSearcher (66) -
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (44) -
Net
:: HTTP (22) -
Net
:: IMAP (66) -
RDoc
:: Generator :: JsonIndex (22) - Range (22)
-
Resolv
:: DNS (11) - String (11)
- StringScanner (11)
-
URI
:: HTTP (11)
モジュール
- Kernel (22)
キーワード
-
NEWS for Ruby 2
. 0 . 0 (11) -
SEARCH
_ INDEX _ FILE (11) - WhichCommand (11)
- bsearch (44)
-
bsearch
_ index (18) -
check
_ signedness (22) - convpath (11)
- find (11)
-
find
_ all (11) -
find
_ gems (11) - generate (11)
-
init
_ gemspecs (11) -
lib
_ dirs _ for (11) -
matching
_ file? (11) -
matching
_ files (11) -
net
/ imap (11) - new (11)
- post (22)
- rake (11)
-
request
_ uri (11) -
ruby 1
. 6 feature (11) -
rubygems
/ commands / search _ command (11) -
search
_ convpath (11) -
search
_ full (11) -
search
_ with _ source (22) - sort (11)
- thread (11)
-
tr
_ s! (11) - tsort (11)
-
uid
_ search (11) -
uid
_ sort (11) -
uid
_ thread (11)
検索結果
先頭5件
- Net
:: IMAP # search(keys , charset = nil) -> [Integer] - Gem
:: SourceInfoCache . search(*args) -> [Gem :: Specification] - Gem
:: SourceInfoCache # search(pattern , platform _ only = false , all = false) -> [Gem :: Specification] - Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] - RDoc
:: Generator :: JsonIndex :: SEARCH _ INDEX _ FILE -> String
-
Net
:: IMAP # search(keys , charset = nil) -> [Integer] (21341.0) -
SEARCH コマンドを送り、条件に合うメッセージの message sequence number を配列で返します。
...SEARCH コマンドを送り、条件に合うメッセージの message sequence number
を配列で返します。
Net::IMAP#examine もしくは Net::IMAP#select で
指定したメールボックスを検索対象とします。
検索の条件は key に文字列の1次元配列もしくは......きます。
詳しくは 2060 の 6.4.4 を見てください。
例:
p imap.search(["SUBJECT", "hello"])
#=> [1, 6, 7, 8]
p imap.search(["SUBJECT", "hello", "FROM", "foo@example.com"])
#=> [6, 7]
p imap.search('SUBJECT "hello"')
#=> [1, 6, 7, 8]
@param key 検索キー(文字列の......配列もしくは文字列)
@param charset 検索に用いるcharset
@see Net::IMAP#search... -
Gem
:: SourceInfoCache . search(*args) -> [Gem :: Specification] (21313.0) -
与えられた条件を満たす Gem::Specification のリストを返します。
...与えられた条件を満たす Gem::Specification のリストを返します。
@param args 検索条件を指定します。Gem::SourceInfoCache#search と引数を合わせてください。
@see Gem::SourceInfoCache#search... -
Gem
:: SourceInfoCache # search(pattern , platform _ only = false , all = false) -> [Gem :: Specification] (21307.0) -
与えられた条件を満たす Gem::Specification のリストを返します。
...与えられた条件を満たす Gem::Specification のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します......。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@see Gem::SourceIndex#search... -
Gem
:: SourceIndex # search(gem _ pattern , platform _ only = false) -> [Gem :: Specification] (21301.0) -
引数で指定された条件を満たす Gem のリストを返します。
引数で指定された条件を満たす Gem のリストを返します。
@param gem_pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param platform_only 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。 -
RDoc
:: Generator :: JsonIndex :: SEARCH _ INDEX _ FILE -> String (15401.0) -
検索インデックスのパスを表す文字列です。
検索インデックスのパスを表す文字列です。 -
Array
# bsearch _ index { |x| . . . } -> Integer | nil (12430.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch との違いは見つかった要......bsearch を参照してください。
//emlist[例: find-minimum モード][ruby]{
ary = [0, 4, 7, 10, 12]
ary.bsearch_index { |x| x >= 4 } # => 1
ary.bsearch_index { |x| x >= 6 } # => 2
ary.bsearch_index { |x| x >= -1 } # => 0
ary.bsearch_index { |x| x >= 100 } # => nil
//}
//emlist[例: fi......nd-any モード][ruby]{
ary = [0, 4, 7, 10, 12]
# 4 <= v < 8 になる要素の位置を検索
ary.bsearch_index { |x| 1 - x / 4 } # => 2
# 8 <= v < 10 になる要素の位置を検索
ary.bsearch_index { |x| 4 - x / 2 } # => nil
//}
@see Array#bsearch... -
Net
:: IMAP # uid _ search(keys , charset = nil) -> [Integer] (12341.0) -
UID SEARCH コマンドを送り、条件に合うメッセージの UID を配列で返します。
...UID SEARCH コマンドを送り、条件に合うメッセージの UID
を配列で返します。
Net::IMAP#examine もしくは Net::IMAP#select で
指定したメールボックスを検索対象とします。
検索の条件は key に文字列の1次元配列もしくは文字列で渡......す。
詳しくは 2060 の 6.4.4 を見てください。
例:
p imap.uid_search(["SUBJECT", "hello"])
#=> [1, 6, 7, 8]
p imap.uid_search(["SUBJECT", "hello", "FROM", "foo@example.com"])
#=> [6, 7]
p imap.uid_search('SUBJECT "hello"')
#=> [1, 6, 7, 8]
@param key 検索キー(文字......列の配列もしくは文字列)
@param charset 検索に用いるcharset
@see Net::IMAP#uid_search... -
Array
# bsearch _ index -> Enumerator (12330.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...素が見つからない場合は nil
を返します。self はあらかじめソートしておく必要があります。
本メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch との違いは見つかった要......bsearch を参照してください。
//emlist[例: find-minimum モード][ruby]{
ary = [0, 4, 7, 10, 12]
ary.bsearch_index { |x| x >= 4 } # => 1
ary.bsearch_index { |x| x >= 6 } # => 2
ary.bsearch_index { |x| x >= -1 } # => 0
ary.bsearch_index { |x| x >= 100 } # => nil
//}
//emlist[例: fi......nd-any モード][ruby]{
ary = [0, 4, 7, 10, 12]
# 4 <= v < 8 になる要素の位置を検索
ary.bsearch_index { |x| 1 - x / 4 } # => 2
# 8 <= v < 10 になる要素の位置を検索
ary.bsearch_index { |x| 4 - x / 2 } # => nil
//}
@see Array#bsearch... -
Gem
:: SourceInfoCache . search _ with _ source(*args) -> Array (12313.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param args 検索条件を指定します。Gem::SourceInfoCache#search_with_source と引数を合わせてください。
@see Gem::SourceInfoCache#search_with_source... -
Gem
:: SourceInfoCache # search _ with _ source(pattern , only _ platform = false , all = false) -> Array (12301.0) -
与えられた条件を満たす Gem::Specification と URL のリストを返します。
...与えられた条件を満たす Gem::Specification と URL のリストを返します。
@param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。
@param only_platform 真を指定するとプラットフォームが一致するもののみを返......します。デフォルトは偽です。
@param all 真を指定するとキャッシュを更新してから検索を実行します。
@return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。...