2509件ヒット
[201-300件を表示]
(0.082秒)
ライブラリ
- ビルトイン (695)
- csv (192)
- dbm (12)
- gdbm (12)
- matrix (134)
-
net
/ http (708) - prime (48)
- psych (12)
-
rdoc
/ generator / json _ index (12) -
rexml
/ document (144) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ indexer (180) -
rubygems
/ source _ index (252) -
rubygems
/ source _ info _ cache _ entry (24) - sdbm (12)
- socket (24)
- strscan (24)
-
yaml
/ dbm (12)
クラス
- Array (304)
- CSV (36)
-
CSV
:: FieldInfo (24) -
CSV
:: Row (72) -
CSV
:: Table (60) - DBM (12)
- Enumerator (24)
-
Enumerator
:: Lazy (12) - GDBM (12)
-
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Indexer (180) -
Gem
:: SourceIndex (252) -
Gem
:: SourceInfoCacheEntry (24) - Hash (152)
- MatchData (36)
- Matrix (120)
-
Net
:: HTTP (144) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPResponse (108) -
Prime
:: PseudoPrimeGenerator (48) -
Psych
:: Parser :: Mark (12) -
RDoc
:: Generator :: JsonIndex (12) -
REXML
:: Elements (36) -
REXML
:: Parent (96) - Regexp (12)
-
RubyVM
:: InstructionSequence (12) - SDBM (12)
-
Socket
:: AncillaryData (12) -
Socket
:: Ifaddr (12) - String (64)
- StringScanner (24)
- Vector (14)
-
YAML
:: DBM (12)
モジュール
- Enumerable (79)
-
Net
:: HTTPHeader (360) -
REXML
:: Node (12)
キーワード
- [] (84)
- []= (110)
- abbreviate (12)
-
add
_ spec (12) -
add
_ specs (12) -
basic
_ auth (12) - begin (12)
- body (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (20)
-
bsearch
_ index (20) -
build
_ indices (10) -
build
_ indicies (2) - byteindex (3)
- byterindex (3)
- bytesplice (10)
- chunked? (12)
- code (12)
-
collect
_ specs (12) -
compact
_ specs (12) - compress (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type= (12) - convert (36)
- delete (36)
-
delete
_ at (12) -
dest
_ directory (12) - directory (12)
- dump (12)
- each (84)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ index (48) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) -
each
_ with _ index (72) - end (12)
- entity (12)
- fetch (72)
- field (12)
- fill (72)
- filter! (14)
-
find
_ gems (12) -
find
_ index (108) -
find
_ name (12) -
form
_ data= (12) -
gem
_ file _ list (12) -
gem
_ signature (12) - generate (12)
-
generate
_ index (12) - get (24)
- get2 (24)
-
get
_ fields (12) - getbyte (12)
- gzip (12)
- head (12)
- head2 (24)
-
http
_ version (12) - ifindex (12)
- index= (12)
-
index
_ in _ parent (12) -
index
_ signature (12) -
install
_ indices (10) -
install
_ indicies (2) -
ipv6
_ pktinfo _ ifindex (12) -
keep
_ if (24) - key (7)
- key? (12)
-
latest
_ specs (12) - length (12)
-
load
_ gems _ in (12) -
main
_ type (12) -
make
_ temp _ directories (12) - method (24)
- msg (12)
-
named
_ captures (12) - outdated (12)
- paranoid (12)
- path (12)
- pointer= (12)
- pos= (12)
-
proxy
_ basic _ auth (12) - range (12)
-
range
_ length (12) -
read
_ body (24) - refresh (12)
- refresh! (12)
-
remove
_ spec (12) -
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
response
_ body _ permitted? (12) - rindex (48)
- sanitize (12)
-
sanitize
_ string (12) - search (12)
- select! (24)
-
send
_ request (12) -
set
_ content _ type (12) -
set
_ form _ data (12) - setbyte (12)
- size (24)
-
source
_ index (12) -
spec
_ dirs (12) -
spec
_ dirs= (12) - specification (12)
-
sub
_ type (12) -
to
_ a (12) -
to
_ h (19) -
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) -
type
_ params (12) - update (12)
- value (12)
-
values
_ at (12) -
with
_ index (60)
検索結果
先頭5件
-
Gem
:: Indexer # generate _ index (9102.0) -
インデックスを構築して保存します。
インデックスを構築して保存します。 -
Gem
:: SourceIndex # index _ signature -> String (9102.0) -
ソースインデックスの SHA256 ダイジェストを返します。
ソースインデックスの SHA256 ダイジェストを返します。
この値はインデックスが変更されると変化します。 -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (6234.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...合は、
要素とそのインデックスを繰り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテ......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 Enumerator#with_index... -
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (6231.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}
@see Enumerator#with_index... -
Prime
:: PseudoPrimeGenerator # with _ index {|prime , index| . . . } -> self (6231.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}
@see Enumerator#with_index... -
Array
# each _ index {|index| . . . . } -> self (6216.0) -
各要素のインデックスに対してブロックを評価します。
...ックを評価します。
以下と同じです。
//emlist[例][ruby]{
(0 ... ary.size).each do |index|
# ....
end
//}
ブロックが与えられなかった場合は、自身と each_index から生成した
Enumerator オブジェクトを返します。
@see Array#each, Array#reverse_ea... -
REXML
:: Parent # each _ index {|index| . . . } -> () (6204.0) -
各子ノードのインデックスに対しブロックを呼び出します。
各子ノードのインデックスに対しブロックを呼び出します。
ブロックが省略された場合は上のような繰り返しをする
Enumerator オブジェクトを返します。 -
Gem
:: SourceInfoCacheEntry # source _ index -> Gem :: SourceIndex (6202.0) -
このキャッシュエントリに対するソースインデックスです。
このキャッシュエントリに対するソースインデックスです。 -
Array
# bsearch _ index -> Enumerator (6139.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...rch_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[例: find-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...