種類
- インスタンスメソッド (768)
- 特異メソッド (240)
- 定数 (84)
ライブラリ
- csv (1092)
キーワード
- << (12)
- ConverterEncoding (12)
- Converters (12)
-
DEFAULT
_ OPTIONS (12) - DateMatcher (12)
- DateTimeMatcher (12)
- HeaderConverters (12)
- VERSION (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)
- filter (36)
- flock (12)
- flush (12)
-
force
_ quotes? (12) - foreach (24)
- fsync (12)
- generate (12)
-
generate
_ line (12) - gets (12)
-
header
_ convert (36) -
header
_ converters (12) -
header
_ row? (12) - headers (12)
- inspect (12)
- instance (24)
-
internal
_ encoding (12) - ioctl (12)
- isatty (12)
- lineno (12)
- new (12)
- open (48)
- parse (24)
-
parse
_ line (12) - path (12)
- pid (12)
- pos (12)
- pos= (12)
- puts (12)
-
quote
_ char (12) - read (24)
- readline (12)
- readlines (24)
- 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)
- table (12)
- tell (12)
-
to
_ i (12) -
to
_ io (12) - truncate (12)
- tty? (12)
-
unconverted
_ fields? (12) -
write
_ headers? (12)
検索結果
先頭5件
-
CSV
# eof? -> bool (1.0) -
IO#eof, IO#eof? に委譲します。
IO#eof, IO#eof? に委譲します。
@see IO#eof, IO#eof? -
CSV
# external _ encoding -> Encoding | nil (1.0) -
IO#external_encoding に委譲します。
IO#external_encoding に委譲します。 -
CSV
# fcntl(cmd , arg = 0) -> Integer (1.0) -
IO#fcntl に委譲します。
IO#fcntl に委譲します。 -
CSV
# field _ size _ limit -> Integer (1.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
# fileno -> Integer (1.0) -
IO#fileno, IO#to_i に委譲します。
IO#fileno, IO#to_i に委譲します。 -
CSV
# flock(operation) -> 0 | false (1.0) -
File#flock に委譲します。
File#flock に委譲します。 -
CSV
# flush -> self (1.0) -
IO#flush に委譲します。
IO#flush に委譲します。 -
CSV
# force _ quotes? -> bool (1.0) -
出力される全てのフィールドがクオートされる場合は、真を返します。
...]{
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"
rows = [[......"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
# fsync -> 0 | nil (1.0) -
IO#fsync に委譲します。
IO#fsync に委譲します。