671件ヒット
[301-400件を表示]
(0.028秒)
別のキーワード
種類
- インスタンスメソッド (429)
- 特異メソッド (209)
- 定数 (22)
- クラス (11)
クラス
- Array (11)
- CSV (616)
-
CSV
:: Table (22) - String (11)
キーワード
- CSV (11)
-
DEFAULT
_ OPTIONS (11) - VERSION (11)
- binmode (11)
- binmode? (11)
- close (11)
-
close
_ read (11) -
close
_ write (11) - closed? (11)
- eof (11)
- eof? (11)
-
external
_ encoding (11) - fcntl (11)
- fileno (11)
- filter (33)
- flock (11)
- flush (11)
- foreach (11)
- fsync (11)
- generate (11)
-
generate
_ line (11) - gets (11)
- inspect (11)
- instance (22)
-
internal
_ encoding (11) - ioctl (11)
- isatty (11)
- new (11)
- open (44)
- parse (22)
-
parse
_ csv (11) -
parse
_ line (11) - path (11)
- pid (11)
- pos (11)
- pos= (11)
- read (11)
- readline (11)
- readlines (11)
- reopen (11)
- rewind (11)
- seek (11)
- shift (11)
- stat (11)
- sync (11)
- sync= (11)
- table (11)
- tell (11)
-
to
_ csv (22) -
to
_ i (11) -
to
_ io (11) -
to
_ s (11) - tty? (11)
検索結果
先頭5件
-
CSV
:: Table # to _ csv(options = Hash . new) -> String (102.0) -
CSV の文字列に変換して返します。
...
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emli......st[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # => "1,2,3\n"
//}... -
CSV
:: Table # to _ s(options = Hash . new) -> String (102.0) -
CSV の文字列に変換して返します。
...
CSV の文字列に変換して返します。
ヘッダを一行目に出力します。その後に残りのデータを出力します。
デフォルトでは、ヘッダを出力します。オプションに :write_headers =>
false を指定するとヘッダを出力しません。
//emli......st[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # => "1,2,3\n"
//}... -
String
# parse _ csv(**options) -> [String] (102.0) -
CSV.parse_line(self, options) と同様です。
...
CSV.parse_line(self, options) と同様です。
1 行の CSV 文字列を、文字列の配列に変換するためのショートカットです。
@param options CSV.new と同様のオプションを指定します。
//emlist[][ruby]{
require "csv"
p "Matz,Ruby\n".parse_csv......by\r\n".parse_csv(col_sep: '|', row_sep: "\r\n") # => ["Matz", "Ruby"]
//}
Ruby 2.6 (CSV 3.0.2) から、次のオプションが使えるようになりました。
//emlist[][ruby]{
require 'csv'
p "1,,3\n".parse_csv # => ["1", nil, "3"]
p "1,,3\n".parse_csv(nil_value: F......loat::NAN) # => ["1", NaN, "3"]
//}
@see CSV.new, CSV.parse_line......"]
//}
Ruby 2.7 (CSV 3.1.2) から、次のオプションが使えるようになりました。
//emlist[][ruby]{
require 'csv'
p "Matz, Ruby\n".parse_csv # => ["Matz", " Ruby"]
p "Matz, Ruby\n".parse_csv(strip: true) # => ["Matz", "Ruby"]
//}
@see CSV.new, CSV.parse_line... -
CSV
# eof -> bool (46.0) -
IO#eof, IO#eof? に委譲します。
...
IO#eof, IO#eof? に委譲します。
@see IO#eof, IO#eof?... -
CSV
# eof? -> bool (46.0) -
IO#eof, IO#eof? に委譲します。
...
IO#eof, IO#eof? に委譲します。
@see IO#eof, IO#eof?... -
CSV
# isatty -> bool (46.0) -
IO#isatty, IO#tty? に委譲します。
...
IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?... -
CSV
# pos -> Integer (46.0) -
IO#pos, IO#tell に委譲します。
...
IO#pos, IO#tell に委譲します。
@see IO#pos, IO#tell... -
CSV
# tell -> Integer (46.0) -
IO#pos, IO#tell に委譲します。
...
IO#pos, IO#tell に委譲します。
@see IO#pos, IO#tell... -
CSV
# tty? -> bool (46.0) -
IO#isatty, IO#tty? に委譲します。
...
IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?... -
CSV
# fileno -> Integer (34.0) -
IO#fileno, IO#to_i に委譲します。
...
IO#fileno, IO#to_i に委譲します。...