382件ヒット
[1-100件を表示]
(0.142秒)
ライブラリ
- ビルトイン (219)
- csv (77)
-
net
/ http (11) -
rdoc
/ generator / json _ index (44)
クラス
- Array (29)
- CSV (22)
-
CSV
:: FieldInfo (11) -
CSV
:: Row (33) -
CSV
:: Table (11) - Encoding (154)
- Enumerator (11)
- Hash (14)
-
Net
:: HTTPGenericRequest (11) -
RDoc
:: Generator :: JsonIndex (33)
モジュール
- Enumerable (11)
キーワード
- CP932 (11)
- CSWINDOWS31J (11)
- CsWindows31J (11)
-
EUCJP
_ MS (11) -
EUC
_ JP _ MS (11) -
EucJP
_ ms (11) - JsonIndex (11)
-
NEWS for Ruby 2
. 3 . 0 (9) - PCK (11)
-
SEARCH
_ INDEX _ FILE (11) - SJIS (11)
-
SJIS
_ DOCOMO (11) -
SJIS
_ DoCoMo (11) -
SJIS
_ SOFTBANK (11) -
SJIS
_ SoftBank (11) -
WINDOWS
_ 31J (11) -
Windows
_ 31J (11) - [] (11)
-
body
_ stream (11) - bsearch (18)
- convert (22)
- delete (22)
- fetch (11)
- field (11)
-
find
_ index (11) - generate (11)
- key (7)
- new (11)
-
rdoc
/ generator / json _ index (11) -
ruby 1
. 6 feature (11) -
with
_ index (11)
検索結果
先頭5件
-
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...