ライブラリ
- ビルトイン (1045)
-
cgi
/ util (24) - csv (192)
- dbm (12)
- gdbm (12)
- matrix (146)
-
net
/ http (732) - openssl (12)
- prime (48)
- psych (12)
-
rdoc
/ generator / json _ index (48) - readline (36)
-
rexml
/ document (144) - rubygems (12)
-
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ indexer (204) -
rubygems
/ source _ index (324) -
rubygems
/ source _ info _ cache _ entry (24) - sdbm (12)
- socket (48)
- strscan (24)
- syslog (24)
-
webrick
/ config (12) -
webrick
/ httputils (12) -
win32
/ registry (192) - win32ole (12)
-
yaml
/ dbm (12)
クラス
- Array (340)
- CGI (24)
- CSV (36)
-
CSV
:: FieldInfo (24) -
CSV
:: Row (72) -
CSV
:: Table (60) - DBM (12)
- Encoding (252)
- Enumerator (24)
-
Enumerator
:: Lazy (12) - GDBM (12)
-
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: DependencyList (12) -
Gem
:: Indexer (192) -
Gem
:: SourceIndex (312) -
Gem
:: SourceInfoCacheEntry (24) - Hash (152)
- MatchData (36)
- Matrix (120)
-
Net
:: HTTP (168) -
Net
:: HTTPGenericRequest (96) -
Net
:: HTTPResponse (108) -
Prime
:: PseudoPrimeGenerator (48) -
Psych
:: Parser :: Mark (12) -
RDoc
:: Generator :: JsonIndex (36) -
REXML
:: Elements (36) -
REXML
:: Parent (96) - Regexp (12)
-
RubyVM
:: InstructionSequence (12) - SDBM (12)
-
Socket
:: AncillaryData (36) -
Socket
:: Ifaddr (12) - String (64)
- StringScanner (24)
- Vector (26)
-
WIN32OLE
_ PARAM (12) -
YAML
:: DBM (12)
モジュール
- Enumerable (79)
-
GC
:: Profiler (24) - Gem (12)
-
Net
:: HTTPHeader (360) -
REXML
:: Node (12) - Syslog (24)
-
WEBrick
:: Config (12) -
WEBrick
:: HTTPUtils (12) -
Win32
:: Registry :: API (192)
オブジェクト
- ENV (14)
-
Readline
:: HISTORY (36)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - ASN1 (12)
- CP50220 (12)
- CP50221 (12)
- CP51932 (12)
- CP932 (12)
- CSWINDOWS31J (12)
- CloseKey (12)
- CreateKey (12)
- CsWindows31J (12)
- DeleteKey (12)
- DeleteValue (12)
-
EUCJP
_ MS (12) -
EUC
_ JP _ MS (12) - EnumKey (12)
- EnumValue (12)
-
EucJP
_ ms (12) - FileHandler (12)
- FlushKey (12)
- GenerateIndexCommand (12)
- IndexError (12)
- Indexer (12)
- JsonIndex (12)
- Mac OS X (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - OpenKey (12)
- PCK (12)
- QueryInfoKey (12)
- QueryValue (12)
- Ruby が動作するプラットフォーム (12)
- Ruby変更履歴 (12)
-
SEARCH
_ INDEX _ FILE (12) - SJIS (12)
-
SJIS
_ DOCOMO (12) -
SJIS
_ DoCoMo (12) -
SJIS
_ SOFTBANK (12) -
SJIS
_ SoftBank (12) - SetValue (12)
- SourceIndex (12)
- String (12)
-
UTF8
_ DOCOMO (12) -
UTF8
_ DoCoMo (12) -
UTF8
_ SOFTBANK (12) -
UTF8
_ SoftBank (12) -
WINDOWS
_ 31J (12) -
Windows
_ 31J (12) - [] (96)
- []= (122)
- abbreviate (12)
-
add
_ spec (12) -
add
_ specs (12) -
basic
_ auth (12) - basis (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)
-
cgi
/ session (12) - check (12)
- 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 (24) -
dest
_ directory (12) - directory (12)
- drb (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)
- escape (12)
- fetch (72)
- field (12)
- fill (72)
- filter! (14)
-
find
_ gems (12) -
find
_ index (108) -
find
_ name (12) -
form
_ data= (12) -
from
_ gems _ in (12) -
from
_ installed _ gems (12) -
from
_ source _ index (12) -
gem
_ file _ list (12) -
gem
_ signature (12) - generate (12)
-
generate
_ index (12) - get (24)
- get2 (24)
-
get
_ fields (12) -
get
_ print (24) - 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) -
installed
_ spec _ directories (12) -
ip
_ pktinfo (12) -
ipv6
_ pktinfo (12) -
ipv6
_ pktinfo _ ifindex (12) -
keep
_ if (24) - key (14)
- key? (12)
-
latest
_ specs (12) - length (12)
-
load
_ gems _ in (12) -
load
_ specification (12) -
main
_ type (12) -
make
_ temp _ directories (12) - manual page (12)
- mask (12)
- mask= (12)
- method (24)
-
mime
_ type (12) - msg (12)
-
named
_ captures (12) -
net
/ http (12) -
net
/ pop (12) - new (84)
- outdated (12)
- packdw (12)
- packqw (12)
- paranoid (12)
- path (12)
- pointer= (12)
- pos= (12)
-
proxy
_ basic _ auth (12) - range (12)
-
range
_ length (12) - rdoc (12)
-
rdoc
/ generator / json _ index (12) -
read
_ body (24) - refresh (12)
- refresh! (12)
-
remove
_ spec (12) - report (12)
-
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
response
_ body _ permitted? (12) - result (12)
- rindex (48)
- rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ indexer (12) -
rubygems
/ server (12) -
rubygems
/ source _ index (12) - 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 (24) -
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) - unescape (12)
- unpackdw (12)
- unpackqw (12)
- update (12)
- value (12)
-
values
_ at (12) - win32ole (12)
-
with
_ index (60) - xmlrpc (3)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (12)
検索結果
先頭5件
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (23006.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...g
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license
* help... -
CSV
:: Row # index(header , minimum _ index = 0) -> Integer (18220.0) -
与えられたヘッダの名前に対応するインデックスを返します。
...aram 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... -
String
# index(pattern , pos = 0) -> Integer | nil (18131.0) -
文字列のインデックス pos から右に向かって pattern を検索し、 最初に見つかった部分文字列の左端のインデックスを返します。 見つからなければ nil を返します。
...ンデックス
//emlist[例][ruby]{
p "astrochemistry".index("str") # => 1
p "regexpindex".index(/e.*x/, 2) # => 3
p "character".index(?c) # => 0
p "foobarfoobar".index("bar", 6) # => 9
p "foobarfoobar".index("bar", -6) # => 9
//}
@see String#rindex......mlist[例][ruby]{
p "astrochemistry".index("str") # => 1
p "regexpindex".index(/e.*x/, 2) # => 3
p "character".index(?c) # => 0
p "foobarfoobar".index("bar", 6) # => 9
p "foobarfoobar".index("bar", -6) # => 9
//}
@see String#rindex
@see String#byteindex... -
Array
# index -> Enumerator (18130.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... -
Array
# index {|item| . . . } -> Integer | nil (18130.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... -
Array
# index(val) -> Integer | nil (18130.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 (18118.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...数の意味は
Matrix#each を参照してください。
//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 を返... -
Matrix
# index(selector = :all) {|e| . . . } -> [Integer , Integer] | nil (18118.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...数の意味は
Matrix#each を参照してください。
//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 を返... -
Matrix
# index(value , selector = :all) -> [Integer , Integer] | nil (18118.0) -
指定した値と一致する要素の位置を [row, column] という配列で返します。 ブロックを与えた場合は各要素を引数としてブロックを呼び出し、 返り値が真であった要素の位置を返します。
...数の意味は
Matrix#each を参照してください。
//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 を返...