101件ヒット
[101-101件を表示]
(0.010秒)
ライブラリ
- ビルトイン (101)
キーワード
- < (1)
- <= (1)
- == (1)
- === (1)
- > (1)
- >= (1)
- [] (1)
- []= (1)
- assoc (1)
- clear (1)
- clone (1)
- compact (1)
- compact! (1)
-
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) - default (2)
- default= (1)
-
default
_ proc (1) -
default
_ proc= (1) - delete (2)
-
delete
_ if (2) - dig (1)
- dup (1)
- each (2)
-
each
_ key (2) -
each
_ pair (2) -
each
_ value (2) - empty? (1)
- eql? (1)
- equal? (1)
- except (1)
- fetch (3)
-
fetch
_ values (2) - filter (2)
- filter! (2)
- flatten (1)
-
has
_ key? (1) -
has
_ value? (1) - hash (1)
- include? (1)
- inspect (1)
- invert (1)
-
keep
_ if (2) - key (1)
- key? (1)
- keys (1)
- length (1)
- member? (1)
- merge (2)
- merge! (2)
- rassoc (1)
- rehash (1)
- reject (2)
- reject! (2)
- replace (1)
- select (2)
- select! (2)
- shift (1)
- size (1)
- slice (1)
- store (1)
-
to
_ a (1) -
to
_ h (2) -
to
_ hash (1) -
to
_ proc (1) -
to
_ s (1) -
transform
_ keys (3) -
transform
_ keys! (3) -
transform
_ values (2) -
transform
_ values! (2) - update (2)
- value? (1)
- values (1)
-
values
_ at (1)
検索結果
-
Hash
# values _ at(*keys) -> [object] (7.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...