204件ヒット
[1-100件を表示]
(0.135秒)
別のキーワード
ライブラリ
- csv (204)
キーワード
- binmode (12)
- binmode? (12)
- closed? (12)
- eof (12)
- eof? (12)
-
field
_ size _ limit (12) -
force
_ quotes? (12) -
header
_ row? (12) - isatty (12)
- read (12)
- readlines (12)
-
return
_ headers? (12) -
skip
_ blanks? (12) - sync (12)
- tty? (12)
-
unconverted
_ fields? (12) -
write
_ headers? (12)
検索結果
先頭5件
-
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
# skip _ blanks? -> bool (6102.0) -
真である場合は、空行を読み飛ばします。
.../emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\n\nrow1_1,row1_2")
csv.skip_blanks? # => false
csv.read # => [["header1", "header2"], [], ["row1_1", "row1_2"]]
csv = CSV.new("header1,header2\n\nrow1_1,row1_2", skip_blanks: true)
csv.skip_blanks? # => true
csv.read #......=> [["header1", "header2"], ["row1_1", "row1_2"]]
//}
@see CSV.new... -
CSV
# closed? -> bool (102.0) -
IO#closed? に委譲します。
IO#closed? に委譲します。
@see IO#closed? -
CSV
# eof -> bool (102.0) -
IO#eof, IO#eof? に委譲します。
IO#eof, IO#eof? に委譲します。
@see IO#eof, IO#eof? -
CSV
# eof? -> bool (102.0) -
IO#eof, IO#eof? に委譲します。
IO#eof, IO#eof? に委譲します。
@see IO#eof, IO#eof? -
CSV
# force _ quotes? -> bool (102.0) -
出力される全てのフィールドがクオートされる場合は、真を返します。
...][ruby]{
require "csv"
rows = [["header1", "header2"], ["row1_1,", "row1_2"]]
result = CSV.generate(force_quotes: false) do |csv|
rows.each { |row| csv << row }
csv.force_quotes? # => false
end
print result
# => header1,header2
# "row1_1,",row1_2
//}
//emlist[例][ruby]{
require "csv"
row......s = [["header1", "header2"], ["row1_1,", "row1_2"]]
result = CSV.generate(force_quotes: true) do |csv|
rows.each { |row| csv << row }
csv.force_quotes? # => true
end
print result
# => true
# => "header1","header2"
# "row1_1,","row1_2"
//}
@see CSV.new... -
CSV
# header _ row? -> bool (102.0) -
次に読み込まれる行が、ヘッダである場合に真を返します。 そうでない場合は、偽を返します。
...に読み込まれる行が、ヘッダである場合に真を返します。
そうでない場合は、偽を返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", headers: true)
csv.header_row? # => true
csv.readline
csv.header_row? # => false
//}... -
CSV
# isatty -> bool (102.0) -
IO#isatty, IO#tty? に委譲します。
IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?