60件ヒット
[1-60件を表示]
(0.012秒)
種類
- インスタンスメソッド (24)
- ライブラリ (12)
- 文書 (12)
- クラス (12)
ライブラリ
- csv (36)
クラス
-
CSV
:: Row (24)
キーワード
- CSV (12)
- cgi (12)
-
ruby 1
. 9 feature (12) -
values
_ at (12)
検索結果
先頭5件
-
CSV
:: Row # fields(*headers _ and _ or _ indices) -> Array (18108.0) -
与えられた引数に対応する値の配列を返します。
...るこ
とができます。
@return 引数を与えなかった場合は全ての要素を返します。
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
row = table.first
row.values_at("a", 1, 2..3) # => ["1", "2", "3", nil]... -
CSV
:: Row # values _ at(*headers _ and _ or _ indices) -> Array (6108.0) -
与えられた引数に対応する値の配列を返します。
...るこ
とができます。
@return 引数を与えなかった場合は全ての要素を返します。
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
row = table.first
row.values_at("a", 1, 2..3) # => ["1", "2", "3", nil]... -
cgi (24.0)
-
CGI プログラムの支援ライブラリです。
...ームフィールドの値を得る
//emlist[][ruby]{
require "cgi"
cgi = CGI.new
values = cgi['field_name'] # <== 'field_name' の配列
# 'field_name' が指定されていなかったら、 ""を返す。
fields = cgi.keys # <== field nameの配列
# フォームに 'field_name'......i.cookies['name']){"string"}
//}
==== クライアントからクッキーを得る
//emlist[][ruby]{
require "cgi"
cgi = CGI.new
values = cgi.cookies['name'] # values は name クッキーの値の配列。
# name クッキーが存在しない場合は空配列を... -
CSV (12.0)
-
このクラスは CSV ファイルやデータに対する完全なインターフェイスを提供します。
...Hopefully this
makes the entire process feel transparent, since CSV's defaults should just
magically work for you data. However, you can set these values manually in
the target Encoding to avoid the translation.
It's also important to note that while all of CSV's core parser is now
Encoding agnost......is not ASCII compatible. There's no existing data for CSV to use to
prepare itself and thus you will probably need to manually specify the desired
Encoding for most of those cases. It will try to guess using the fields in a
row of output though, when using CSV::generate_line() or Array#to_csv().... -
ruby 1
. 9 feature (12.0) -
ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。
...> { ... } は残っています)
: 実験中だった ;; が除去されました
: いくらか obsolete な構文が除去されました
: Values はなくなりました
* その他
: 文字列のハッシュに FNV-1a hash を使用するようになりました
: Regexp#initialize......-03-10
: ((<組み込み変数/$-W>)) [ruby] [new]
追加
=== 2004-03-07
: Net::HTTPHeader#add_header [lib] [new]
: Net::HTTPHeader#get_fields [lib] [new]
: Net::HTTPHeader#content_length= [lib] [new]
: Net::HTTPHeader#content_type [lib] [new]
: Net::HTTPHeader#main_type [lib] [new]
: Net...