ライブラリ
- ビルトイン (192)
-
cgi
/ core (24) - csv (28)
- dbm (12)
- json (12)
- matrix (24)
- open3 (48)
- openssl (36)
- optparse (144)
- rake (12)
-
rexml
/ document (36) -
rinda
/ tuplespace (12) -
webrick
/ httputils (12) -
win32
/ registry (12) - win32ole (36)
クラス
- Array (58)
-
CGI
:: Cookie (12) -
CSV
:: Row (12) -
CSV
:: Table (12) - DBM (12)
- Enumerator (24)
- Hash (78)
-
JSON
:: Parser (12) - MatchData (12)
- Matrix (24)
-
OpenSSL
:: X509 :: ExtensionFactory (36) - OptionParser (144)
-
REXML
:: Element (12) -
REXML
:: Entity (24) -
Rake
:: TaskArguments (12) -
Rinda
:: TupleEntry (12) - String (12)
-
WIN32OLE
_ VARIANT (36) -
Win32
:: Registry (12)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Open3 (48)
-
WEBrick
:: HTTPUtils (12)
オブジェクト
- ENV (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - RARRAY (12)
- Ruby用語集 (12)
- [] (12)
- []= (12)
-
add
_ attributes (12) - coerce (12)
- compact (9)
- compact! (9)
-
create
_ ext _ from _ array (12) -
create
_ extension (24) - diagonal (12)
-
fetch
_ values (2) -
mark
_ locations _ array (12) - names (12)
- new (72)
-
next
_ values (12) - on (144)
- pack (21)
- pack テンプレート文字列 (12)
-
peek
_ values (12) -
pipeline
_ r (24) -
pipeline
_ start (24) - rassoc (24)
-
rb
_ Array (12) -
rb
_ ary _ new (12) -
rb
_ ary _ new2 (12) -
rb
_ ary _ new3 (12) -
rb
_ ary _ to _ s (12) -
rb
_ check _ convert _ type (12) -
rb
_ f _ array (12) -
rdoc
/ parser / c (12) - rss (12)
-
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - select (12)
- shift (12)
-
split
_ header _ value (12) -
to
_ a (12) -
to
_ ary (12) -
to
_ csv (4) -
to
_ h (19) - unpack (12)
-
values
_ at (60) - クラス/メソッドの定義 (12)
- パターンマッチ (12)
検索結果
先頭5件
-
OpenSSL
:: X509 :: ExtensionFactory # create _ ext _ from _ array(ary) -> OpenSSL :: X509 :: Extension (6133.0) -
[oid, value, critical] もしくは [oid, value] という配列から OpenSSL::X509::Extension オブジェクトを生成します。
...[oid, value, critical] もしくは [oid, value] という配列から
OpenSSL::X509::Extension オブジェクトを生成します。
@param ary 生成する拡張領域のデータの配列
@see OpenSSL::X509::ExtensionFactory#create_ext... -
MatchData
# values _ at(*index) -> [String] (6112.0) -
正規表現中の n 番目の括弧にマッチした部分文字列の配列を返します。
...m.to_a.values_at(...)
p m.values_at(0, 1, 2, 3, 4) # => ["foobarbaz", "foo", "bar", "baz", nil]
p m.values_at(-1, -2, -3, -4, -5) # => ["baz", "bar", "foo", nil, nil]
m = /(?<a>\d+) *(?<op>[+\-*\/]) *(?<b>\d+)/.match("1 + 2")
m.to_a # => ["1 + 2", "1", "+", "2"]
m.values_at(:......a, :b, :op) # => ["1", "2", "+"]
//}
@see Array#values_at, Array#[]... -
Hash
# values _ at(*keys) -> [object] (6106.0) -
引数で指定されたキーに対応する値の配列を返します。
...引数が指定されなかった場合は、空の配列を返します。
//emlist[例][ruby]{
h = {1=>"a", 2=>"b", 3=>"c"}
p h.values_at(1,3,4) #=> ["a", "c", nil]
# [h[1], h[3] ,h[4]] と同じ
//}
@see Hash#[] , Hash.new, Hash#default, Hash#default_proc, Array#values_at... -
CSV
:: Row # values _ at(*headers _ and _ or _ indices) -> Array (3202.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
:: QueryExtension :: Value # to _ a -> Array (3102.0) -
@todo
@todo -
CGI
:: QueryExtension :: Value # to _ ary -> Array (3102.0) -
@todo
@todo -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (414.0) -
1.6.8から1.8.0への変更点(まとめ) * ((<1.6.8から1.8.0への変更点(まとめ)/インタプリタの変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたクラス/モジュール>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたメソッド>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加された定数>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張されたクラス/メソッド(互換性のある変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/変更されたクラス/メソッド(互換性のない変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/文法の変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/正規表現>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Marshal>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Windows 対応>)) * ((<1.6.8から1.8.0への変更点(まとめ)/廃止された(される予定の)機能>)) * ((<1.6.8から1.8.0への変更点(まとめ)/ライブラリ>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張ライブラリAPI>)) * ((<1.6.8から1.8.0への変更点(まとめ)/バグ修正>)) * ((<1.6.8から1.8.0への変更点(まとめ)/サポートプラットフォームの追加>))
...別名) ((<ruby-dev:20197>))
=== Array
: ((<Array#transpose|Array/transpose>)) [new]
追加
: ((<Array#zip|Enumerable/zip>)) [new]
: ((<Enumerable#zip|Enumerable/zip>)) [new]
追加
: ((<Array#fetch|Array/fetch>)) [new]
追加
: ((<Array#insert|Array/insert>)) [new]
追加 (......)) [new]
追加。((<ruby-talk:9460>))が実装に至った経緯だと思う
=== LocalJumpError
: ((<LocalJumpError#exit_value|LocalJumpError/exit_value>)) [new]
: ((<LocalJumpError#reason|LocalJumpError/reason>)) [new]
追加
=== Marshal
: ((<Marshal/Object#marshal_load>)) [new]......の他
: ((<Array#values_at|Array/values_at>)) [new]
: ((<Hash#values_at|Hash/values_at>)) [new]
: ((<ENV/ENV.values_at>)) [new]
: ((<MatchData#values_at|MatchData/values_at>)) [new]
: ((<aStruct#values_at|Struct/values_at>)) [new]
ruby 1.6 の ((<indexes|Array/indexes>)) は、values_at とい... -
Hash
# rassoc(value) -> Array | nil (230.0) -
ハッシュ内を検索して,引数 value と 一致する値を探します。
...,引数 value と 一致する値を探します。
比較は == メソッドを使用して行われます。一致する値があれば,
該当するキーとその値とを要素とするサイズ 2 の配列を返します。
ない場合には nil を返します。
@param value 探索す......る値。
//emlist[例][ruby]{
a = {1=> "one", 2 => "two", 3 => "three", "ii" => "two"}
a.rassoc("two") #=> [2, "two"]
a.rassoc("four") #=> nil
//}
@see Hash#assoc, Array#rassoc... -
VALUE rb
_ ary _ new3(long n , VALUE i0 , i1 , i2 , . . . ) (212.0) -
長さ n で要素に i0 i1 i2 …を格納した Ruby の配列を作成し返します。
...n で要素に i0 i1 i2 …を格納した
Ruby の配列を作成し返します。
対応するRubyコード
ary = Array[i0, i1, i2...] または
ary = [i0, i1, i2...]
使用例
VALUE ary;
int i[3] = { 1, 2, 3 };
ary = rb_ary_new3(3, INT2FIX(i[0]), INT2FIX(i[1]), INT2FIX(i[2]));... -
VALUE rb
_ ary _ to _ s(VALUE ary) (212.0) -
ary.to_s
...ary.to_s
使用例
void debug_print(VALUE ary)
{
Check_Type(ary, T_ARRAY);
printf("%s", STR2CSTR(rb_ary_to_s(ary)));
}...