るりまサーチ

最速Rubyリファレンスマニュアル検索!
382件ヒット [1-100件を表示] (0.142秒)
トップページ > クエリ:i[x] > クエリ:j[x] > クエリ:index[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. matrix i

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

CSV::FieldInfo#index -> Integer (24331.0)

行内で何番目のフィールドかわかるゼロベースのインデックスを返します。

...

//emlist[例][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-10 ((2458310j,0s,0n),+0s,2299161j)>>
//}...

Hash#index(val) -> object (24307.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...

RDoc::Generator::JsonIndex::SEARCH_INDEX_FILE -> String (21301.0)

検索インデックスのパスを表す文字列です。

検索インデックスのパスを表す文字列です。

Enumerable#find_index {|obj| ... } -> Integer | nil (18563.0)

条件に一致する最初の要素の位置を返します。

...しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。

//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_index(2) #=> 1
//}

ブロックが与えられた場合には、各要素を引数として先頭から順...
...素の位置を返します。
一つも真にならなかった場合は nil を返します。

//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}

引数、ブロックのどちらも与えられな...

rdoc/generator/json_index (18018.0)

他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ クスを生成するサブライブラリです。

...ータが生成する HTML で検索が行えるように、JSON の検索インデッ
クスを生成するサブライブラリです。

This generator is derived from sdoc by Vladimir Kolesnikov and
contains verbatim code written by him.

このジェネレータは HTML ジェネレータと一...
...います。:

class RDoc::Generator::Darkfish
def initialize options
# ...
@base_dir = Pathname.pwd.expand_path

@json_index = RDoc::Generator::JsonIndex.new self, options
end

def generate
# ...
@json_index.generate
end
end

=== インデックス...
...クスは JSON ファイルに出力されます。search_data という
グローバル変数に以下のような内容で出力されます。

var search_data = {
"index": {
"searchIndex":
["a", "b", ...],
"longSearchIndex":
["a", "a::b", ...],
"info": [...

絞り込み条件を変える

RDoc::Generator::JsonIndex (18000.0)

他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ クスを生成するクラスです。

...他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ
クスを生成するクラスです。...

Enumerator#with_index(offset = 0) {|(*args), idx| ... } -> object (12338.0)

生成時のパラメータに従って、要素にインデックスを添えて繰り返します。 インデックスは offset から始まります。

...す。

//emlist[例][ruby]{
str = "xyz"

enum = Enumerator.new {|y| str.each_byte {|b| y << b }}
enum.with_index {|byte, idx| p [byte, idx] }
# => [120, 0]
# [121, 1]
# [122, 2]

require "stringio"
StringIO.new("foo|bar|baz").each("|").with_index(1) {|s, i| p [s, i] }
# => ["f...
...にインデックスを添えてブロックを繰り返します。
インデックスは 0 から始まります。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。...

Encoding::SJIS_DOCOMO -> Encoding (12212.0)

SJIS-DoCoMo エンコーディングです。

...SJIS-DoCoMo エンコーディングです。

Shift_JIS, CP932 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。

@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english...
.../service/developer/make/content/pictograph/extention/index.html...

Encoding::SJIS_DoCoMo -> Encoding (12212.0)

SJIS-DoCoMo エンコーディングです。

...SJIS-DoCoMo エンコーディングです。

Shift_JIS, CP932 の亜種です。
DoCoMo の携帯電話で使われる絵文字が含まれています。

@see https://www.nttdocomo.co.jp/english/service/developer/make/content/pictograph/basic/index.html,
https://www.nttdocomo.co.jp/english...
.../service/developer/make/content/pictograph/extention/index.html...

Encoding::SJIS_SOFTBANK -> Encoding (12206.0)

SJIS-SoftBank エンコーディングです。

...SJIS-SoftBank エンコーディングです。

Shift_JIS, CP932 の亜種です。
SoftBank の携帯電話で使われる絵文字が含まれています。

@see http://creation.mb.softbank.jp/mc/tech/tech_pic/pic_index.html...

絞り込み条件を変える

<< 1 2 3 ... > >>