324件ヒット
[1-100件を表示]
(0.113秒)
ライブラリ
- csv (324)
キーワード
-
add
_ row (12) - binmode (12)
- binmode? (12)
-
close
_ read (12) - closed? (12)
- convert (24)
- encoding (12)
-
external
_ encoding (12) - fcntl (12)
-
field
_ size _ limit (12) -
header
_ convert (36) -
header
_ converters (12) -
header
_ row? (12) - headers (12)
-
internal
_ encoding (12) - ioctl (12)
- pid (12)
- read (12)
- readline (12)
- readlines (12)
-
return
_ headers? (12) - rewind (12)
-
unconverted
_ fields? (12) -
write
_ headers? (12)
検索結果
先頭5件
-
CSV
# encoding -> Encoding (6202.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 (6202.0) -
IO#external_encoding に委譲します。
...IO#external_encoding に委譲します。... -
CSV
# internal _ encoding -> Encoding | nil (6202.0) -
IO#internal_encoding に委譲します。
...IO#internal_encoding に委譲します。
@see IO#internal_encoding... -
CSV
# binmode -> self (6102.0) -
IO#binmode に委譲します。
...IO#binmode に委譲します。
@see IO#binmode... -
CSV
# binmode? -> bool (6102.0) -
IO#binmode? に委譲します。
...IO#binmode? に委譲します。
@see IO#binmode?... -
CSV
# close _ read -> nil (6102.0) -
IO#close_read に委譲します。
...IO#close_read に委譲します。
@see IO#close_read... -
CSV
# closed? -> bool (6102.0) -
IO#closed? に委譲します。
...IO#closed? に委譲します。
@see IO#closed?... -
CSV
# field _ size _ limit -> Integer (6102.0) -
フィールドサイズの最大値を返します。
...csv"
csv = CSV.new(DATA)
csv.field_size_limit # => nil
p csv.read # => [["a", "b"], ["\n2\n2\n", ""]]
DATA.rewind
csv = CSV.new(DATA, field_size_limit: 4)
p csv.field_size_limit # => 4
csv.read # => #<CSV::MalformedCSVError: Field size exceeded on line 2.>
__END__
"a","b"
"
2
2
",""
//}
@see CSV... -
CSV
# header _ convert {|field , field _ info| . . . } (6102.0) -
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
...
CSV#convert に似ていますが、ヘッダ行用のメソッドです。
このメソッドはヘッダ行を読み込む前に呼び出さなければなりません。
@param name 変換器の名前を指定します。
//emlist[例 name を指定][ruby]{
require "csv"
csv = CSV.new("heade......ader2\nrow1_1,row1_2", headers: true)
csv.header_convert(:symbol)
csv.first.headers # => [:header1, :header2]
//}
//emlist[例 ブロックを指定][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_convert do |field|
field.to_sym
end
csv.first.heade......rs # => [:header1, :header2]
//}
@see CSV#header_converters, CSV#convert...