2214件ヒット
[2201-2214件を表示]
(0.061秒)
別のキーワード
種類
- インスタンスメソッド (2154)
- 特異メソッド (60)
ライブラリ
- ビルトイン (2178)
- abbrev (12)
- csv (12)
- shellwords (12)
キーワード
- & (12)
- * (24)
- + (12)
- - (12)
- << (12)
- <=> (12)
- == (12)
- [] (48)
- abbrev (12)
- all? (21)
- any? (30)
- append (8)
- assoc (12)
- at (12)
- bsearch (24)
-
bsearch
_ index (20) - clear (12)
- clone (12)
- collect (24)
- collect! (24)
- combination (24)
- compact (12)
- compact! (12)
- concat (21)
- count (36)
- cycle (24)
- delete (24)
-
delete
_ at (12) -
delete
_ if (24) - difference (7)
- dig (10)
- drop (12)
-
drop
_ while (24) - dup (12)
- each (24)
-
each
_ index (24) - empty? (12)
- eql? (12)
- fetch (36)
- fill (72)
- filter (14)
- filter! (14)
-
find
_ index (36) - first (24)
- flatten (12)
- flatten! (12)
- hash (12)
- include? (12)
- index (36)
- insert (12)
- inspect (12)
- intersect? (4)
- intersection (6)
- join (12)
-
keep
_ if (24) - last (24)
- length (12)
- map (24)
- map! (24)
- max (36)
- min (36)
- minmax (12)
- new (36)
- none? (21)
- one? (21)
- pack (21)
- permutation (24)
- pop (24)
- prepend (8)
- product (24)
- push (12)
- rassoc (12)
- reject (24)
- reject! (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (12)
- reverse (12)
- reverse! (12)
-
reverse
_ each (24) - rindex (36)
- rotate (12)
- rotate! (12)
- sample (48)
- select (24)
- select! (24)
- shelljoin (12)
- shift (24)
- shuffle (24)
- shuffle! (24)
- size (12)
- slice (36)
- slice! (36)
- sort (24)
- sort! (24)
-
sort
_ by! (24) - sum (18)
- take (12)
-
take
_ while (24) -
to
_ a (12) -
to
_ ary (12) -
to
_ csv (12) -
to
_ h (19) -
to
_ s (12) - transpose (12)
-
try
_ convert (12) - union (7)
- uniq (24)
- uniq! (24)
- unshift (12)
-
values
_ at (12) - zip (24)
- | (12)
検索結果
-
Array
. new(size) {|index| . . . } -> Array (101.0) -
長さ size の配列を生成し、各要素のインデックスを引数としてブロックを実行し、 各要素の値をブロックの評価結果に設定します。
...emlist[例][ruby]{
ary = Array.new(3){|index| "hoge#{index}"}
p ary #=> ["hoge0", "hoge1", "hoge2"]
//}
//emlist[例][ruby]{
ary = Array.new(3){ "foo" }
p ary #=> ["foo", "foo", "foo"]
ary[0].capitalize!
p ary #=> ["Foo", "foo", "foo"]... -
Array
. try _ convert(obj) -> Array | nil (101.0) -
to_ary メソッドを用いて obj を配列に変換しようとします。
...引数が配列であるかどうかを調べるために使えます。
//emlist[例][ruby]{
Array.try_convert([1]) # => [1]
Array.try_convert("1") # => nil
if tmp = Array.try_convert(arg)
# the argument is an array
elsif tmp = String.try_convert(arg)
# the argument is a string
end
//}...