432件ヒット
[201-300件を表示]
(0.168秒)
ライブラリ
- csv (432)
キーワード
-
close
_ write (12) -
col
_ sep (12) - convert (36)
- converters (12)
-
field
_ size _ limit (12) -
force
_ quotes? (12) - gets (12)
-
header
_ convert (36) -
header
_ converters (12) - headers (12)
-
internal
_ encoding (12) - ioctl (12)
- isatty (12)
- path (12)
- pid (12)
- pos (12)
- puts (12)
-
quote
_ char (12) - readline (12)
-
return
_ headers? (12) -
row
_ sep (12) - seek (12)
- shift (12)
- stat (12)
- string (12)
- sync= (12)
- tell (12)
-
to
_ io (12) - truncate (12)
- tty? (12)
-
unconverted
_ fields? (12) -
write
_ headers? (12)
検索結果
先頭5件
-
CSV
# isatty -> bool (6108.0) -
IO#isatty, IO#tty? に委譲します。
...IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?... -
CSV
# path -> String (6108.0) -
IO#path に委譲します。
...IO#path に委譲します。
@see IO#path... -
CSV
# quote _ char -> String (6108.0) -
フィールドをクオートするのに使用する文字列を返します。
...フィールドをクオートするのに使用する文字列を返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", quote_char: "'")
csv.quote_char # => "'"
//}
@see CSV.new... -
CSV
# return _ headers? -> bool (6108.0) -
ヘッダを返す場合は、真を返します。 そうでない場合は、偽を返します。
...t[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true, return_headers: false)
csv.return_headers? # => false
csv.shift # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true, return_headers: true)
csv.......return_headers? # => true
csv.shift # => #<CSV::Row "header1":"header1" "header2":"header2">
//}
@see CSV.new... -
CSV
# shift -> Array | CSV :: Row (6108.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
# to _ io -> self (6108.0) -
IO#to_io に委譲します。
...IO#to_io に委譲します。
@see IO#to_io... -
CSV
# truncate(path , length) -> 0 (6108.0) -
File#truncate に委譲します。
...File#truncate に委譲します。
@see File#truncate... -
CSV
# tty? -> bool (6108.0) -
IO#isatty, IO#tty? に委譲します。
...IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?... -
CSV
# unconverted _ fields? -> bool (6108.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,20......18-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 ((2458309j,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...