1177件ヒット
[1-100件を表示]
(0.057秒)
種類
- インスタンスメソッド (902)
- 特異メソッド (220)
- 定数 (44)
- クラス (11)
クラス
- Array (11)
- CSV (737)
-
CSV
:: FieldInfo (66) -
CSV
:: Row (198) -
CSV
:: Table (143) - String (11)
キーワード
- ConverterEncoding (11)
-
DEFAULT
_ OPTIONS (11) - DateTimeMatcher (11)
- FieldInfo (11)
- VERSION (11)
- [] (44)
- []= (22)
- binmode (11)
- binmode? (11)
- close (11)
-
close
_ read (11) -
close
_ write (11) -
col
_ sep (11) - convert (22)
- delete (22)
-
delete
_ if (33) - each (22)
- encoding (11)
-
external
_ encoding (11) - fcntl (11)
- field (11)
- field? (11)
-
field
_ row? (11) -
field
_ size _ limit (11) - fields (11)
- fileno (11)
- filter (33)
- flock (11)
- foreach (11)
- fsync (11)
- generate (11)
-
generate
_ line (11) - header (11)
- header= (11)
-
header
_ convert (22) - headers (11)
- include? (11)
- index (22)
- index= (11)
- inspect (33)
- instance (22)
-
internal
_ encoding (11) - ioctl (11)
- isatty (11)
- length (22)
- line (11)
- line= (11)
- lineno (11)
- new (22)
- open (44)
- parse (22)
-
parse
_ csv (11) -
parse
_ line (11) - path (11)
- pid (11)
- pos (11)
-
quote
_ char (11) - read (11)
- readline (11)
- readlines (22)
- reopen (11)
- rewind (11)
-
row
_ sep (11) - seek (11)
- shift (11)
- size (22)
-
skip
_ blanks? (11) - stat (11)
- string (11)
- table (11)
- tell (11)
-
to
_ csv (33) -
to
_ i (11) -
to
_ io (11) -
to
_ s (22) - tty? (11)
-
unconverted
_ fields? (11) -
values
_ at (22) -
write
_ headers? (11)
検索結果
先頭5件
-
CSV
# internal _ encoding -> Encoding | nil (15302.0) -
IO#internal_encoding に委譲します。
...
IO#internal_encoding に委譲します。
@see IO#internal_encoding... -
CSV
:: ConverterEncoding -> Encoding (12302.0) -
すべての変換器で使用するエンコーディングです。
すべての変換器で使用するエンコーディングです。 -
CSV
# unconverted _ fields? -> bool (12202.0) -
パースした結果が unconverted_fields というメソッドを持つ場合に真を返します。 そうでない場合は、偽を返します。
...した結果が unconverted_fields というメソッドを持つ場合に真を返します。
そうでない場合は、偽を返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10")
csv.unconverted_fields? # => nil
csv = CSV.new("date1,date2\n2018......-07-09,2018-07-10", unconverted_fields: false)
csv.unconverted_fields? # => false
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true, unconverted_fields: true)
csv.unconverted_fields? # => true
csv.convert(:date)
row = csv.readline
row.fields # => [#<Date: 2018-07-09 ((24......58309j,0s,0n),+0s,2299161j)>, #<Date: 2018-07-10 ((2458310j,0s,0n),+0s,2299161j)>]
row.unconverted_fields # => ["2018-07-09", "2018-07-10"]
//}
@see CSV.new... -
CSV
:: VERSION -> String (12202.0) -
ライブラリのバージョンを表す文字列です。
ライブラリのバージョンを表す文字列です。 -
CSV
:: Row # index(header , minimum _ index = 0) -> Integer (9402.0) -
与えられたヘッダの名前に対応するインデックスを返します。
...@param minimum_index このインデックスより後で、ヘッダの名前を探します。
重複しているヘッダがある場合に便利です。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2", "header1"], [1, 2, 3])
row.index("header......1") # => 0
row.index("header1", 1) # => 2
//}
@see CSV::Row#field... -
CSV
# encoding -> Encoding (9202.0) -
読み書きするときに使用するエンコーディングを返します。
...読み書きするときに使用するエンコーディングを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.encoding # => #<Encoding:UTF-8>
//}... -
CSV
# external _ encoding -> Encoding | nil (9202.0) -
IO#external_encoding に委譲します。
...
IO#external_encoding に委譲します。... -
CSV
# inspect -> String (9202.0) -
ASCII 互換文字列で自身の情報を表したものを返します。
...ASCII 互換文字列で自身の情報を表したものを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.inspect # => "<#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
//}... -
CSV
# lineno -> Integer (9202.0) -
このファイルから読み込んだ最終行の行番号を返します。 フィールドに含まれる改行はこの値には影響しません。
...このファイルから読み込んだ最終行の行番号を返します。
フィールドに含まれる改行はこの値には影響しません。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2")
csv.lineno # => 0
csv.readline
csv.lineno # => 1
//}... -
CSV
# string -> String (9202.0) -
StringIO#string に委譲します。
...StringIO#string に委譲します。
@see StringIO#string...