768件ヒット
[701-768件を表示]
(0.066秒)
ライブラリ
- csv (768)
キーワード
- << (12)
-
add
_ row (12) - binmode (12)
- binmode? (12)
- close (12)
-
close
_ read (12) -
close
_ write (12) - closed? (12)
-
col
_ sep (12) - convert (36)
- converters (12)
- each (12)
- encoding (12)
- eof (12)
- eof? (12)
-
external
_ encoding (12) - fcntl (12)
-
field
_ size _ limit (12) - fileno (12)
- flock (12)
- flush (12)
-
force
_ quotes? (12) - fsync (12)
- gets (12)
-
header
_ convert (36) -
header
_ converters (12) -
header
_ row? (12) - headers (12)
- inspect (12)
-
internal
_ encoding (12) - ioctl (12)
- isatty (12)
- lineno (12)
- path (12)
- pid (12)
- pos (12)
- pos= (12)
- puts (12)
-
quote
_ char (12) - read (12)
- readline (12)
- readlines (12)
- reopen (12)
-
return
_ headers? (12) - rewind (12)
-
row
_ sep (12) - seek (12)
- shift (12)
-
skip
_ blanks? (12) - stat (12)
- string (12)
- sync (12)
- sync= (12)
- tell (12)
-
to
_ i (12) -
to
_ io (12) - truncate (12)
- tty? (12)
-
unconverted
_ fields? (12) -
write
_ headers? (12)
検索結果
先頭5件
-
CSV
# to _ i -> Integer (2.0) -
IO#fileno, IO#to_i に委譲します。
IO#fileno, IO#to_i に委譲します。 -
CSV
# to _ io -> self (2.0) -
IO#to_io に委譲します。
IO#to_io に委譲します。
@see IO#to_io -
CSV
# truncate(path , length) -> 0 (2.0) -
File#truncate に委譲します。
File#truncate に委譲します。
@see File#truncate -
CSV
# tty? -> bool (2.0) -
IO#isatty, IO#tty? に委譲します。
IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty? -
CSV
# unconverted _ fields? -> bool (2.0) -
パースした結果が 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", h......_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... -
CSV
# write _ headers? -> bool (2.0) -
ヘッダを出力先に書き込む場合は真を返します。 そうでない場合は偽を返します。
...st[例][ruby]{
require "csv"
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10")
csv.write_headers? # => nil
header = ["header1", "header2"]
row = ["row1_1", "row1_2"]
result = CSV.generate(headers: header, write_headers: false) do |csv|
csv.write_headers? # => false
csv << row
end
result # =>......"row1_1,row1_2\n"
result = CSV.generate(headers: header, write_headers: true) do |csv|
csv.write_headers? # => true
csv << row
end
result # => "header1,header2\nrow1_1,row1_2\n"
//}
@see CSV.new...