158件ヒット
[1-100件を表示]
(0.077秒)
別のキーワード
種類
- インスタンスメソッド (121)
- 文書 (26)
- 特異メソッド (11)
ライブラリ
- csv (121)
-
rubygems
/ package / tar _ header (11)
クラス
- CSV (33)
-
CSV
:: Table (88) -
Gem
:: Package :: TarHeader (11)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) - [] (33)
-
by
_ col _ or _ row (11) -
by
_ col _ or _ row! (11) -
by
_ row (11) -
by
_ row! (11) - new (11)
- read (11)
- readlines (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11)
検索結果
先頭5件
-
Gem
:: Package :: TarHeader # mode -> Integer (21217.0) -
tar のヘッダに含まれる mode を返します。
...tar のヘッダに含まれる mode を返します。... -
CSV
:: Table # mode -> Symbol (18225.0) -
現在のアクセスモードを返します。
...現在のアクセスモードを返します。
//emlist[例][ruby]{
require "csv"
row = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
table = CSV::Table.new([row])
table.mode # => :col_or_row
table.by_col!
table.mode # => :col
//}... -
ruby 1
. 8 . 4 feature (438.0) -
ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。
...e/Ruby本体>))
* ((<ruby 1.8.4 feature/Symbol [bug]>))
* ((<ruby 1.8.4 feature/Symbol [bug]>))
* ((<ruby 1.8.4 feature/super [bug]>))
* ((<ruby 1.8.4 feature/正規表現 [bug]>))
* ((<ruby 1.8.4 feature/シグナル [bug]>))
* ((<ruby 1.8.4 feature/組み込みライブラリ>))
* ((<r......なかった。((<ruby-core:6765>)),((<ruby-bugs:2872>)),((<ruby-dev:27818>))
: optparse
#Tue Nov 22 23:52:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
#
# * lib/optparse.rb: match incomplete (in current enconding) multibyte
# string. http://inamode6.tokuhirom.dnsalias.org/show/1......#: WEBrick
#Mon Oct 31 05:37:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
#
# * lib/webrick/httpservlet/cgihandler.rb
# (WEBrick::HTTPServlet::CGIHandler#do_GET): the value of Set-Cookie:
# header field should be splited into each cookie. [ruby-Bugs:2199]
#
# * lib/we... -
CSV
:: Table # [](header) -> [String] | [nil] (357.0) -
ミックスモードでは、このメソッドは引数に行番号を指定すれば行単位で動作 し、ヘッダの名前を指定すれば列単位で動作します。
...します。
@param header 取得したい列のヘッダを文字列で指定します。ロウモードでは使用できません。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_......le.mode # => :col_or_row
p table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
p table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
p table["header2"] # => ["row1_2", "row2_2"]
p table[0..1] # => [#<CSV::Row "header1":"row1_1" "header2":"row1_2">,......#<CSV::Row "header1":"row2_1" "header2":"row2_2">]
# カラムモード
table.by_col!
p table.mode # => :col
p table[0] # => ["row1_1", "row2_1"]
p table[1] # => ["row1_2", "row2_2"]
p table["header2"] # => ["row1_2", "row2_2"]
p table[0..1] # => [["row1_1", "row1_2"], ["... -
CSV
:: Table # [](index) -> CSV :: Row | [String] | nil (257.0) -
ミックスモードでは、このメソッドは引数に行番号を指定すれば行単位で動作 し、ヘッダの名前を指定すれば列単位で動作します。
...します。
@param header 取得したい列のヘッダを文字列で指定します。ロウモードでは使用できません。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_......le.mode # => :col_or_row
p table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
p table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
p table["header2"] # => ["row1_2", "row2_2"]
p table[0..1] # => [#<CSV::Row "header1":"row1_1" "header2":"row1_2">,......#<CSV::Row "header1":"row2_1" "header2":"row2_2">]
# カラムモード
table.by_col!
p table.mode # => :col
p table[0] # => ["row1_1", "row2_1"]
p table[1] # => ["row1_2", "row2_2"]
p table["header2"] # => ["row1_2", "row2_2"]
p table[0..1] # => [["row1_1", "row1_2"], ["... -
CSV
:: Table # [](range) -> [CSV :: Row]| [Array] | nil (257.0) -
ミックスモードでは、このメソッドは引数に行番号を指定すれば行単位で動作 し、ヘッダの名前を指定すれば列単位で動作します。
...します。
@param header 取得したい列のヘッダを文字列で指定します。ロウモードでは使用できません。
//emlist[例][ruby]{
require "csv"
row1 = CSV::Row.new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_......le.mode # => :col_or_row
p table[0] # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
p table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
p table["header2"] # => ["row1_2", "row2_2"]
p table[0..1] # => [#<CSV::Row "header1":"row1_1" "header2":"row1_2">,......#<CSV::Row "header1":"row2_1" "header2":"row2_2">]
# カラムモード
table.by_col!
p table.mode # => :col
p table[0] # => ["row1_1", "row2_1"]
p table[1] # => ["row1_2", "row2_2"]
p table["header2"] # => ["row1_2", "row2_2"]
p table[0..1] # => [["row1_1", "row1_2"], ["... -
CSV
:: Table # by _ row -> CSV :: Table (172.0) -
ロウモードになっている新しい CSV::Table オブジェクトを返します。
...ew(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table # => #<CSV::Table mode:col_or_row row_count:3>
row_table = table.by_row # => #<CSV::Table mode:row row_count:3>
row_table[0] # => #<C......SV::Row "header1":"row1_1" "header2":"row1_2">
row_table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
//}... -
CSV
:: Table # by _ row! -> self (172.0) -
自身をロウモードに変更します。
...new(["header1", "header2"], ["row1_1", "row1_2"])
row2 = CSV::Row.new(["header1", "header2"], ["row2_1", "row2_2"])
table = CSV::Table.new([row1, row2])
table # => #<CSV::Table mode:col_or_row row_count:3>
table.by_row!
table # => #<CSV::Table mode:row row_count:3>
table[0] # => #<CS......V::Row "header1":"row1_1" "header2":"row1_2">
table[1] # => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
//}... -
CSV
:: Table # by _ col _ or _ row -> CSV :: Table (160.0) -
ミックスモードになっている新しい CSV::Table オブジェクトを返します。
...w(["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_row
col_or_row_table # => #<CSV::Table mode:col......_or_row row_count:3>
table # => #<CSV::Table mode:col row_count:3>
//}... -
CSV
# read -> [Array] | CSV :: Table (148.0) -
残りの行を読み込んで配列の配列を返します。 self の生成時に headers オプションに偽でない値が指定されていた場合は CSV::Table オブジェクトを返します。
...ます。
self の生成時に headers オプションに偽でない値が指定されていた場合は CSV::Table オブジェクトを返します。
データソースは読み込み用にオープンされている必要があります。
//emlist[例 headers: false][ruby]{
require "csv"
cs......=> [["header1", "header2"], ["row1_1", "row1_2"], ["row2_1", "row2_2"]]
__END__
header1,header2
row1_1,row1_2
row2_1,row2_2
//}
//emlist[例 headers: true][ruby]{
require "csv"
csv = CSV.new(DATA.read, headers: true)
csv.read
# => #<CSV::Table mode:col_or_row row_count:3>
__END__
header1,header2...