るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.012秒)
トップページ > クエリ:values[x] > クエリ:fields[x]

別のキーワード

  1. _builtin values_at
  2. dbm values
  3. dbm values_at
  4. _builtin values
  5. csv values_at

ライブラリ

クラス

キーワード

検索結果

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...

絞り込み条件を変える