1044件ヒット
[1-100件を表示]
(0.114秒)
ライブラリ
- ビルトイン (312)
- csv (77)
- dbm (11)
- matrix (72)
-
net
/ http (220) - prime (44)
-
rexml
/ document (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ indexer (22) -
rubygems
/ source _ index (231) -
rubygems
/ source _ info _ cache _ entry (22) -
yaml
/ dbm (11)
クラス
- Array (73)
-
CSV
:: Row (66) -
CSV
:: Table (11) - DBM (11)
- Enumerator (22)
-
Enumerator
:: Lazy (10) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: Indexer (22) -
Gem
:: SourceIndex (231) -
Gem
:: SourceInfoCacheEntry (22) - Hash (102)
- MatchData (11)
- Matrix (66)
-
Net
:: HTTP (55) -
Net
:: HTTPGenericRequest (88) -
Net
:: HTTPResponse (11) -
Prime
:: PseudoPrimeGenerator (44) -
REXML
:: Parent (11) - Regexp (11)
-
RubyVM
:: InstructionSequence (11) - Vector (6)
-
YAML
:: DBM (11)
モジュール
- Enumerable (72)
-
Net
:: HTTPHeader (66)
キーワード
- [] (11)
- []= (39)
-
add
_ spec (11) -
add
_ specs (11) -
basic
_ auth (11) - body (11)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) - bsearch (9)
-
bsearch
_ index (9) -
build
_ indices (9) -
build
_ indicies (2) - chunked? (11)
-
collect
_ specs (11) - delete (11)
- dump (11)
- each (44)
-
each
_ index (22) -
each
_ value (11) -
each
_ with _ index (55) - fetch (11)
- field (11)
- filter! (12)
-
find
_ gems (11) -
find
_ index (66) -
find
_ name (11) -
gem
_ signature (11) -
index
_ signature (11) -
keep
_ if (22) -
latest
_ specs (11) - length (11)
-
load
_ gems _ in (11) - method (11)
-
named
_ captures (11) - outdated (11)
- path (11)
-
proxy
_ basic _ auth (11) - refresh (11)
- refresh! (11)
-
remove
_ spec (11) -
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
response
_ body _ permitted? (11) - rindex (11)
- search (11)
- select! (22)
-
send
_ request (11) - size (22)
-
source
_ index (11) -
spec
_ dirs (11) -
spec
_ dirs= (11) - specification (11)
-
sub
_ type (11) -
to
_ a (11) -
to
_ h (17) -
transform
_ keys (7) -
transform
_ keys! (7) -
transform
_ values (16) -
transform
_ values! (16) - update (11)
- value (11)
-
values
_ at (11) -
with
_ index (54)
検索結果
先頭5件
-
CSV
:: Row # index(header , minimum _ index = 0) -> Integer (18321.0) -
与えられたヘッダの名前に対応するインデックスを返します。
...param minimum_index このインデックスより後で、ヘッダの名前を探します。
重複しているヘッダがある場合に便利です。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header1"], [1, 2, 3])
row.index("header1")......# => 0
row.index("header1", 1) # => 2
//}
@see CSV::Row#field... -
Array
# index -> Enumerator (18231.0) -
条件に一致する最初の要素の位置を返します。
...ます。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
p [1, 0, 0, 1, 0].index(1) #=> 0
p [1, 0, 0, 0, 0].index(1) #=> 0
p [0, 0, 0, 0, 0].index(1) #=> nil
//}
ブロックが与えられた場合には、各要素を引数として順にブ......返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
p [0, 1, 0, 1, 0].index {|v| v > 0} #=> 1
//}
引数、ブロックのどちらも与えられなかった場合は、
Enumerator のインスタンスを返します。
@see Array#rindex... -
Matrix
# index(selector = :all) -> Enumerator (18219.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...指定した値と一致する要素の位置を [row, column] という配列で返します。
ブロックを与えた場合は各要素を引数としてブロックを呼び出し、
返り値が真であった要素の位置を返します。
複数の位置で値が一致する/ブロック......さい。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}
value を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param... -
Matrix
# index(value , selector = :all) -> [Integer , Integer] | nil (18219.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...指定した値と一致する要素の位置を [row, column] という配列で返します。
ブロックを与えた場合は各要素を引数としてブロックを呼び出し、
返り値が真であった要素の位置を返します。
複数の位置で値が一致する/ブロック......さい。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
//}
value を指定せず、さらにブロックを省略した場合、
Enumerator を返します。
@param value 探索する値
@param... -
DBM
# index(value) -> String | nil (18202.0) -
このメソッドは deprecated です。DBM#key を使用してください。
このメソッドは deprecated です。DBM#key を使用してください。 -
Gem
:: SourceIndex # index _ signature -> String (18202.0) -
ソースインデックスの SHA256 ダイジェストを返します。
ソースインデックスの SHA256 ダイジェストを返します。
この値はインデックスが変更されると変化します。 -
YAML
:: DBM # index(value) -> String | nil (18202.0) -
value を持つ要素のキーを返します。
...value を持つ要素のキーを返します。
対応するキーが見つからなかった場合は nil を返します。
@param value 検索したい値を指定します。YAML 形式に変換できるオブジェク
トが指定できます。
[注意] 非推奨のメソッ... -
Gem
:: SourceInfoCacheEntry # source _ index -> Gem :: SourceIndex (15402.0) -
このキャッシュエントリに対するソースインデックスです。
このキャッシュエントリに対するソースインデックスです。 -
Gem
:: SourceIndex # gem _ signature(gem _ full _ name) -> String (12101.0) -
与えられた名前を持つ Gem の SHA256 ダイジェストを返します。
...与えられた名前を持つ Gem の SHA256 ダイジェストを返します。
@param gem_full_name Gem の名前を指定します。... -
Enumerable
# each _ with _ index(*args) -> Enumerator (9234.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...ックを省略した場合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)......ruby]{
[5, 10, 15].each_with_index do |n, idx|
p [n, idx]
end
# => [5, 0]
# [10, 1]
# [15, 2]
//}
//emlist[引数ありの例][ruby]{
require 'stringio'
StringIO.new("foo|bar|baz").each_with_index("|") do |s, i|
p [s, i]
end
# => ["foo|", 0]
# ["bar|", 1]
# ["baz", 2]
//}
@see Enum......erator#with_index...