516件ヒット
[1-100件を表示]
(0.026秒)
別のキーワード
クラス
- Array (12)
- CSV (264)
-
CSV
:: FieldInfo (36) -
CSV
:: Row (96) -
CSV
:: Table (96) - String (12)
キーワード
- << (12)
- [] (36)
-
col
_ sep (12) - encoding (12)
-
external
_ encoding (12) - fcntl (12)
-
field
_ size _ limit (12) - fileno (12)
- gets (12)
- header (12)
- index (24)
- inspect (36)
-
internal
_ encoding (12) - ioctl (12)
- length (24)
- line (12)
- lineno (12)
-
parse
_ csv (12) - path (12)
- pid (12)
- pos (12)
- push (12)
-
quote
_ char (12) - readline (12)
-
row
_ sep (12) - shift (12)
- size (24)
- string (12)
- tell (12)
-
to
_ csv (36) -
to
_ i (12) -
to
_ s (24) - truncate (12)
検索結果
先頭5件
-
CSV
# encoding -> Encoding (6203.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 (6203.0) -
IO#external_encoding に委譲します。
...IO#external_encoding に委譲します。... -
CSV
# internal _ encoding -> Encoding | nil (6203.0) -
IO#internal_encoding に委譲します。
...IO#internal_encoding に委譲します。
@see IO#internal_encoding... -
CSV
# string -> String (6203.0) -
StringIO#string に委譲します。
...StringIO#string に委譲します。
@see StringIO#string... -
CSV
# gets -> Array | CSV :: Row (6103.0) -
String や IO をラップしたデータソースから一行だけ読み込んで フィールドの配列か CSV::Row のインスタンスを返します。
...String や IO をラップしたデータソースから一行だけ読み込んで
フィールドの配列か CSV::Row のインスタンスを返します。
データソースは読み込み用にオープンされている必要があります。
@return ヘッダを使用しない場合は......配列を返します。
ヘッダを使用する場合は CSV::Row を返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new(DATA.read)
csv.readline # => ["header1", "header2"]
csv.readline # => ["row1_1", "row1_2"]
__END__
header1,header2
row1_1,row1_2
//}... -
CSV
:: Row # length -> Integer (6103.0) -
Array#length, Array#size に委譲します。
...Array#length, Array#size に委譲します。
@see Array#size... -
CSV
:: Table # length -> Integer (6103.0) -
(ヘッダを除く)行数を返します。
...(ヘッダを除く)行数を返します。
Array#length, Array#size に委譲しています。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.size # => 1
//}
@see Array#length, Array#size... -
CSV
:: Row # size -> Integer (3103.0) -
Array#length, Array#size に委譲します。
...Array#length, Array#size に委譲します。
@see Array#size... -
CSV
:: Table # size -> Integer (3103.0) -
(ヘッダを除く)行数を返します。
...(ヘッダを除く)行数を返します。
Array#length, Array#size に委譲しています。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.size # => 1
//}
@see Array#length, Array#size...