1662件ヒット
[1-100件を表示]
(0.113秒)
別のキーワード
ライブラリ
- ビルトイン (400)
- csv (84)
- matrix (14)
-
net
/ http (708) - prime (48)
- psych (12)
-
rexml
/ document (108) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ indexer (96) -
rubygems
/ source _ index (144) - socket (12)
- strscan (24)
クラス
- Array (216)
- CSV (36)
-
CSV
:: FieldInfo (12) -
CSV
:: Table (36) - Enumerator (24)
-
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Indexer (96) -
Gem
:: SourceIndex (144) - Hash (48)
- MatchData (36)
-
Net
:: HTTP (144) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPResponse (108) -
Prime
:: PseudoPrimeGenerator (48) -
Psych
:: Parser :: Mark (12) -
REXML
:: Parent (96) - Regexp (12)
-
Socket
:: AncillaryData (12) - String (40)
- StringScanner (24)
- Vector (14)
モジュール
- Enumerable (24)
-
Net
:: HTTPHeader (360) -
REXML
:: Node (12)
キーワード
- [] (60)
- []= (62)
- abbreviate (12)
-
add
_ spec (12) -
add
_ specs (12) -
basic
_ auth (12) - begin (12)
- body (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - 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 (12)
-
delete
_ at (12) - dump (12)
- each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ index (24) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) -
each
_ with _ index (48) - end (12)
- entity (12)
- fetch (72)
- fill (72)
-
find
_ gems (12) -
find
_ index (36) -
find
_ name (12) -
form
_ data= (12) - get (24)
- get2 (24)
-
get
_ fields (12) - gzip (12)
- head (12)
- head2 (24)
-
http
_ version (12) -
index
_ in _ parent (12) -
ipv6
_ pktinfo _ ifindex (12) -
keep
_ if (24) - key (7)
- key? (12)
-
latest
_ specs (12) -
load
_ gems _ in (12) -
main
_ type (12) -
make
_ temp _ directories (12) - method (24)
- msg (12)
-
named
_ captures (12) - paranoid (12)
- path (12)
- pointer= (12)
- pos= (12)
-
proxy
_ basic _ auth (12) - range (12)
-
range
_ length (12) -
read
_ body (24) -
remove
_ spec (12) -
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
response
_ body _ permitted? (12) - rindex (48)
- sanitize (12)
- search (12)
- select! (10)
-
send
_ request (12) -
set
_ content _ type (12) -
set
_ form _ data (12) -
spec
_ dirs (12) -
spec
_ dirs= (12) - specification (12)
-
sub
_ type (12) -
type
_ params (12) - update (12)
- value (12)
-
values
_ at (12) -
with
_ index (48)
検索結果
先頭5件
-
Psych
:: Parser :: Mark # index -> Integer (21102.0) -
先頭からの文字数。
先頭からの文字数。 -
REXML
:: Parent # index(child) -> Integer | nil (21102.0) -
child の子ノード列上での位置を返します。
child の子ノード列上での位置を返します。
child が子ノードでない場合には nil を返します。 -
String
# index(pattern , pos = 0) -> Integer | nil (18262.0) -
文字列のインデックス pos から右に向かって pattern を検索し、 最初に見つかった部分文字列の左端のインデックスを返します。 見つからなければ nil を返します。
...ックス pos から右に向かって pattern を検索し、
最初に見つかった部分文字列の左端のインデックスを返します。
見つからなければ nil を返します。
引数 pattern は探索する部分文字列または正規表現で指定します。
pos が負......。
@param pattern 探索する部分文字列または正規表現
@param pos 探索を開始するインデックス
//emlist[例][ruby]{
p "astrochemistry".index("str") # => 1
p "regexpindex".index(/e.*x/, 2) # => 3
p "character".index(?c) # => 0
p "foo......barfoobar".index("bar", 6) # => 9
p "foobarfoobar".index("bar", -6) # => 9
//}
@see String#rindex......barfoobar".index("bar", 6) # => 9
p "foobarfoobar".index("bar", -6) # => 9
//}
@see String#rindex
@see String#byteindex... -
Array
# index -> Enumerator (18155.0) -
条件に一致する最初の要素の位置を返します。
...。
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は 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... -
Array
# index {|item| . . . } -> Integer | nil (18155.0) -
条件に一致する最初の要素の位置を返します。
...。
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は 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... -
Array
# index(val) -> Integer | nil (18155.0) -
条件に一致する最初の要素の位置を返します。
...。
@param val 位置を知りたいオブジェクトを指定します。
指定された val と == で等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は 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... -
Hash
# index(val) -> object (18126.0) -
値 val に対応するキーを返します。対応する要素が存在しない時には 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") #=> n... -
CSV
:: FieldInfo # index -> Integer (18120.0) -
行内で何番目のフィールドかわかるゼロベースのインデックスを返します。
...例][ruby]{
require 'csv'
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.index
Date.parse(field)
end
p csv.first
# => 0
# => 1
# => #<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299161j)> "date2":#<Date: 2018-07-... -
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (12337.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...