399件ヒット
[1-100件を表示]
(0.016秒)
別のキーワード
クラス
- Array (12)
- CSV (156)
-
CSV
:: Row (63) -
CSV
:: Table (168)
キーワード
- << (12)
- [] (12)
-
by
_ col (12) -
by
_ col! (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) - converters (12)
-
deconstruct
_ keys (3) - empty? (24)
- fields (12)
- fsync (12)
- gets (12)
-
header
_ converters (12) - headers (36)
- isatty (12)
- mode (12)
- read (12)
- readline (12)
- readlines (12)
- row (12)
- shift (12)
- sync (12)
- sync= (12)
- table (12)
-
to
_ a (12) -
to
_ csv (12) - tty? (12)
-
values
_ at (24)
検索結果
先頭5件
-
CSV
:: Row # deconstruct _ keys(keys) -> Hash (6203.0) -
パターンマッチに使用するヘッダの名前と値の Hash を返します。
...に変換する必要があります。
@param keys パターンマッチに使用するヘッダの名前の配列を指定します。nil の場合は全てをパターンマッチに使用します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new([:header1, :header2, :header3], [1, 2,... -
CSV
# fsync -> 0 | nil (6103.0) -
IO#fsync に委譲します。
...IO#fsync に委譲します。... -
CSV
# isatty -> bool (6103.0) -
IO#isatty, IO#tty? に委譲します。
...IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?... -
CSV
# sync -> bool (6103.0) -
IO#sync に委譲します。
...IO#sync に委譲します。
@see IO#sync... -
CSV
# sync=(newstate) (6103.0) -
IO#sync= に委譲します。
...IO#sync= に委譲します。
@see IO#sync=... -
CSV
# tty? -> bool (6103.0) -
IO#isatty, IO#tty? に委譲します。
...IO#isatty, IO#tty? に委譲します。
@see IO#isatty, IO#tty?... -
CSV
:: Row # empty? -> bool (6103.0) -
内部で保持している @row へ委譲します。
内部で保持している @row へ委譲します。 -
CSV
:: Table # by _ col -> CSV :: Table (6103.0) -
カラムモードになっている新しい CSV::Table オブジェクトを返します。
...カラムモードになっている新しい CSV::Table オブジェクトを返します。
元のテーブルモードを変更せずにメソッドチェーンできるので便利です。しか
し、大きなデータセットに対しても同じだけメモリを消費するので気を......うにしてください。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
col_table = table.by_col
col_table[0] # => ["row1_1", "row2_1"]
co... -
CSV
:: Table # by _ col! -> self (6103.0) -
自身をカラムモードに変更します。
...ッドチェーンできます。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table.by_col!
table[0] # => ["row1_1", "row2_1"]
table[1] #... -
CSV
:: Table # by _ col _ or _ row -> CSV :: Table (6103.0) -
ミックスモードになっている新しい CSV::Table オブジェクトを返します。
...ミックスモードになっている新しい CSV::Table オブジェクトを返します。
元のテーブルモードを変更せずにメソッドチェーンできるので便利です。しか
し、大きなデータセットに対しても同じだけメモリを消費するので気......t[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2]).by_col!
table # => #<CSV::Table mode:col row_count:3>
col_or_row_table = table.by_col_or_r......ow
col_or_row_table # => #<CSV::Table mode:col_or_row row_count:3>
table # => #<CSV::Table mode:col row_count:3>
//}...