1504件ヒット
[1-100件を表示]
(0.140秒)
ライブラリ
- ビルトイン (377)
- csv (88)
- matrix (44)
-
net
/ http (506) - prime (44)
- psych (11)
-
rdoc
/ generator / json _ index (11) - readline (33)
-
rexml
/ document (55) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ indexer (11) -
rubygems
/ source _ index (77) -
rubygems
/ source _ info _ cache _ entry (22) -
webrick
/ config (11) -
webrick
/ httputils (11) -
win32
/ registry (132) - win32ole (11)
クラス
- Array (113)
-
CSV
:: Row (55) -
CSV
:: Table (33) - Enumerator (22)
-
Enumerator
:: Lazy (10) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: Indexer (11) -
Gem
:: SourceIndex (77) -
Gem
:: SourceInfoCacheEntry (22) - Hash (136)
- MatchData (33)
- Matrix (44)
-
Net
:: HTTP (154) -
Net
:: HTTPGenericRequest (88) -
Net
:: HTTPResponse (88) -
Prime
:: PseudoPrimeGenerator (44) -
Psych
:: Parser :: Mark (11) -
RDoc
:: Generator :: JsonIndex (11) -
REXML
:: Parent (55) -
RubyVM
:: InstructionSequence (11) - String (2)
-
WIN32OLE
_ PARAM (11)
モジュール
- Enumerable (39)
-
Net
:: HTTPHeader (176) -
WEBrick
:: Config (11) -
WEBrick
:: HTTPUtils (11) -
Win32
:: Registry :: API (132)
オブジェクト
-
Readline
:: HISTORY (33)
キーワード
- CloseKey (11)
- CreateKey (11)
- DeleteKey (11)
- DeleteValue (11)
- EnumKey (11)
- EnumValue (11)
- FileHandler (11)
- FlushKey (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) - OpenKey (11)
- QueryInfoKey (11)
- QueryValue (11)
-
SEARCH
_ INDEX _ FILE (11) - SetValue (11)
- String (11)
- [] (55)
- []= (33)
-
add
_ specs (11) -
basic
_ auth (11) - begin (11)
- body (22)
- body= (11)
-
body
_ stream (11) -
body
_ stream= (11) - bsearch (18)
-
bsearch
_ index (18) - bytesplice (2)
- check (11)
- code (11)
-
content
_ length (11) -
content
_ range (11) - delete (33)
-
delete
_ at (22) - each (66)
-
each
_ capitalized _ name (11) -
each
_ index (44) -
each
_ with _ index (66) - end (11)
- entity (11)
- fetch (44)
- field (11)
- fill (22)
- filter! (12)
-
find
_ gems (11) - get (22)
- get2 (22)
-
get
_ fields (11) -
get
_ print (22) - head (11)
- head2 (22)
-
http
_ version (11) -
keep
_ if (22) - key (7)
- length (11)
-
main
_ type (11) - method (22)
-
mime
_ type (11) - msg (11)
- new (11)
- paranoid (11)
- path (11)
-
proxy
_ basic _ auth (11) - range (11)
-
range
_ length (11) -
read
_ body (11) - refresh (11)
- refresh! (11)
-
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
response
_ body _ permitted? (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
rubygems
/ commands / generate _ index _ command (11) - search (11)
- select! (22)
-
send
_ request (11) - size (11)
-
source
_ index (11) -
sub
_ type (11) -
to
_ a (11) -
to
_ h (17) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - value (11)
-
values
_ at (11) -
with
_ index (54)
検索結果
先頭5件
-
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (27530.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 # each _ with _ index -> Enumerator (27430.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... -
Psych
:: Parser :: Mark # index -> Integer (27301.0) -
先頭からの文字数。
先頭からの文字数。 -
Hash
# index(val) -> object (27231.0) -
値 val に対応するキーを返します。対応する要素が存在しない時には nil を返します。
...は
nil を返します。
該当するキーが複数存在する場合、どのキーを返すかは不定です。
Hash#index は obsolete です。
使用すると警告メッセージが表示されます。
@param val 探索に用いる値を指定します。
//emlist[例][ruby]{
h = {:ab......=> "some" , :cd => "all" , :ef => "all"}
p h.key("some") #=> :ab
p h.key("all") #=> :cd
p h.key("at") #=> nil
//}
@see Hash#invert... -
CSV
:: Row # index(header , minimum _ index = 0) -> Integer (24720.0) -
与えられたヘッダの名前に対応するインデックスを返します。
...m header ヘッダの名前を指定します。
@param minimum_index このインデックスより後で、ヘッダの名前を探します。
重複しているヘッダがある場合に便利です。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "he......ader2", "header1"], [1, 2, 3])
row.index("header1") # => 0
row.index("header1", 1) # => 2
//}
@see CSV::Row#field... -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (24645.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...ith_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま渡されます。
//emlist[例][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 Enumerator#with_index... -
Enumerable
# each _ with _ index(*args) -> Enumerator (24445.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...ith_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま渡されます。
//emlist[例][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 Enumerator#with_index... -
Prime
:: PseudoPrimeGenerator # with _ index {|prime , index| . . . } -> self (24430.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... -
Matrix
# each _ with _ index(which = :all) -> Enumerator (24408.0) -
行列の各要素をその位置とともに引数としてブロックを呼び出します。
...which で処理する要素の範囲を指定することができます。
Matrix#each と同じなのでそちらを参照してください。
ブロックを省略した場合、 Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].each_with_index do |e,......row, col|
puts "#{e} at #{row}, #{col}"
end
# => 1 at 0, 0
# => 2 at 0, 1
# => 3 at 1, 0
# => 4 at 1, 1
//}
@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します
@see Matrix#each... -
Matrix
# each _ with _ index(which = :all) {|e , row , col| . . . } -> self (24408.0) -
行列の各要素をその位置とともに引数としてブロックを呼び出します。
...which で処理する要素の範囲を指定することができます。
Matrix#each と同じなのでそちらを参照してください。
ブロックを省略した場合、 Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].each_with_index do |e,......row, col|
puts "#{e} at #{row}, #{col}"
end
# => 1 at 0, 0
# => 2 at 0, 1
# => 3 at 1, 0
# => 4 at 1, 1
//}
@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します
@see Matrix#each...