ライブラリ
- ビルトイン (936)
-
cgi
/ util (22) - csv (132)
- dbm (11)
- gdbm (11)
- matrix (133)
-
net
/ http (660) - openssl (11)
- prime (44)
- psych (11)
-
rdoc
/ generator / json _ index (33) - readline (33)
-
rexml
/ document (99) - rubygems (11)
-
rubygems
/ commands / dependency _ command (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ indexer (99) -
rubygems
/ source _ index (275) -
rubygems
/ source _ info _ cache _ entry (22) - sdbm (11)
- socket (44)
- strscan (22)
- syslog (11)
-
webrick
/ config (11) -
webrick
/ httputils (11) - win32ole (11)
-
yaml
/ dbm (11)
クラス
- Array (311)
- CGI (22)
- CSV (33)
-
CSV
:: FieldInfo (11) -
CSV
:: Row (44) -
CSV
:: Table (44) - DBM (11)
- Encoding (231)
- Enumerator (22)
-
Enumerator
:: Lazy (10) - GDBM (11)
-
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: DependencyList (11) -
Gem
:: Indexer (99) -
Gem
:: SourceIndex (275) -
Gem
:: SourceInfoCacheEntry (22) - Hash (136)
- MatchData (33)
- Matrix (110)
-
Net
:: HTTP (154) -
Net
:: HTTPGenericRequest (77) -
Net
:: HTTPResponse (99) -
Prime
:: PseudoPrimeGenerator (44) -
Psych
:: Parser :: Mark (11) -
RDoc
:: Generator :: JsonIndex (33) -
REXML
:: Elements (33) -
REXML
:: Parent (55) - Regexp (11)
-
RubyVM
:: InstructionSequence (11) - SDBM (11)
-
Socket
:: AncillaryData (33) -
Socket
:: Ifaddr (11) - String (52)
- StringScanner (22)
- Vector (23)
-
WIN32OLE
_ PARAM (11) -
YAML
:: DBM (11)
モジュール
- Enumerable (72)
-
GC
:: Profiler (22) - Gem (11)
-
Net
:: HTTPHeader (330) -
REXML
:: Node (11) - Syslog (11)
-
WEBrick
:: Config (11) -
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (14)
-
Readline
:: HISTORY (33)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - ASN1 (11)
- CP50220 (11)
- CP50221 (11)
- CP51932 (11)
- CP932 (11)
- CSWINDOWS31J (11)
- CsWindows31J (11)
-
EUCJP
_ MS (11) -
EUC
_ JP _ MS (11) -
EucJP
_ ms (11) - FileHandler (11)
- Mac OS X (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) - PCK (11)
- Ruby が動作するプラットフォーム (11)
-
SEARCH
_ INDEX _ FILE (11) - SJIS (11)
-
SJIS
_ DOCOMO (11) -
SJIS
_ DoCoMo (11) -
SJIS
_ SOFTBANK (11) -
SJIS
_ SoftBank (11) - String (11)
-
UTF8
_ DOCOMO (11) -
UTF8
_ DoCoMo (11) -
UTF8
_ SOFTBANK (11) -
UTF8
_ SoftBank (11) -
WINDOWS
_ 31J (11) -
Windows
_ 31J (11) - [] (88)
- []= (45)
- abbreviate (11)
-
add
_ spec (11) -
add
_ specs (11) -
basic
_ auth (11) - basis (11)
- begin (11)
- body (22)
-
body
_ stream (11) -
body
_ stream= (11) - bsearch (18)
-
bsearch
_ index (18) - byteindex (2)
- byterindex (2)
- bytesplice (4)
-
cgi
/ session (11) - chunked? (11)
- code (11)
-
collect
_ specs (11) -
compact
_ specs (11) -
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type= (11) - convert (33)
- delete (33)
-
delete
_ at (22) -
dest
_ directory (11) - directory (11)
- drb (11)
- dump (11)
- each (77)
-
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ index (44) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) -
each
_ with _ index (66) - end (11)
- entity (11)
- escape (11)
- fetch (66)
- field (11)
- fill (66)
- filter! (12)
-
find
_ gems (11) -
find
_ index (99) -
find
_ name (11) -
form
_ data= (11) -
from
_ gems _ in (11) -
from
_ installed _ gems (11) -
from
_ source _ index (11) -
gem
_ file _ list (11) -
gem
_ signature (11) - generate (11)
- get (22)
- get2 (22)
-
get
_ fields (11) -
get
_ print (22) - getbyte (11)
- head (11)
- head2 (22)
-
http
_ version (11) - ifindex (11)
-
index
_ in _ parent (11) -
index
_ signature (11) -
installed
_ spec _ directories (11) -
ip
_ pktinfo (11) -
ipv6
_ pktinfo (11) -
ipv6
_ pktinfo _ ifindex (11) -
keep
_ if (22) - key (14)
- key? (11)
-
latest
_ specs (11) - length (11)
-
load
_ gems _ in (11) -
load
_ specification (11) -
main
_ type (11) - manual page (11)
- mask (11)
- method (22)
-
mime
_ type (11) - msg (11)
-
named
_ captures (11) -
net
/ http (11) - new (77)
- outdated (11)
- path (11)
- pointer= (11)
- pos= (11)
-
proxy
_ basic _ auth (11) - range (11)
-
range
_ length (11) - rdoc (11)
-
read
_ body (22) - refresh (11)
- refresh! (11)
-
remove
_ spec (11) - report (11)
-
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
response
_ body _ permitted? (11) - result (11)
- rindex (44)
- rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / generate _ index _ command (11) - sanitize (11)
-
sanitize
_ string (11) - search (11)
- select! (22)
-
send
_ request (11) -
set
_ content _ type (11) -
set
_ form _ data (11) - setbyte (11)
- size (22)
-
source
_ index (22) -
spec
_ dirs (11) - specification (11)
-
sub
_ type (11) -
to
_ a (11) -
to
_ h (17) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) -
type
_ params (11) - unescape (11)
- update (11)
- value (11)
-
values
_ at (11) - win32ole (11)
-
with
_ index (54) - xmlrpc (3)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
検索結果
先頭5件
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (23038.0)
-
オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル * Ruby オフィシャルサイト https://www.ruby-lang.org/ja/ * 原著:まつもとゆきひろ * 最新版URL: https://www.ruby-lang.org/ja/documentation/
...リプト言語 Ruby リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレンスはほぼ揃っ......f
その他:
* spec/m17n
* spec/regexp
* spec/lambda_proc
==== 組み込みライブラリ
* _builtin
==== 標準添付ライブラリ
* /
==== C API
* /
==== その他
* news/index
* pack_template
* print_format
* glossary
* symref
* marshal_format
* license
* help......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.4 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.5 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.6 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 2.7 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.0 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.1 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.2 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ......リファレンスマニュアル
* Ruby オフィシャルサイト https://www.ruby-lang.org/ja/
* version 3.3 対応リファレンス
* 原著:まつもとゆきひろ
* 最新版URL: https://www.ruby-lang.org/ja/documentation/
=== 使用上の注意
組込みクラスのリファレ... -
CSV
:: Row # index(header , minimum _ index = 0) -> Integer (18320.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... -
CSV
:: FieldInfo # index -> Integer (18255.0) -
行内で何番目のフィールドかわかるゼロベースのインデックスを返します。
...v = 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-10 ((2458310j,0s,0n),+0s,2299... -
String
# index(pattern , pos = 0) -> Integer | nil (18237.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 (18230.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 (18230.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 (18230.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 (18218.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 (18218.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 (18218.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 を返...