201件ヒット
[201-201件を表示]
(0.010秒)
種類
- インスタンスメソッド (196)
- 特異メソッド (5)
ライブラリ
- ビルトイン (198)
- abbrev (1)
- csv (1)
- shellwords (1)
キーワード
- & (1)
- * (2)
- + (1)
- - (1)
- << (1)
- <=> (1)
- == (1)
- [] (4)
- []= (3)
- abbrev (1)
- all? (3)
- any? (3)
- append (1)
- assoc (1)
- at (1)
- bsearch (2)
-
bsearch
_ index (2) - clear (1)
- clone (1)
- collect (2)
- collect! (2)
- combination (2)
- compact (1)
- compact! (1)
- concat (2)
- count (3)
- cycle (2)
- delete (2)
-
delete
_ at (1) -
delete
_ if (2) - difference (1)
- dig (1)
- drop (1)
-
drop
_ while (2) - dup (1)
- each (2)
-
each
_ index (2) - empty? (1)
- eql? (1)
- fetch (3)
- fill (6)
- filter (2)
- filter! (2)
-
find
_ index (3) - first (2)
- flatten (1)
- flatten! (1)
- hash (1)
- include? (1)
- index (3)
- insert (1)
- inspect (1)
- intersect? (1)
- intersection (1)
- join (1)
-
keep
_ if (2) - last (2)
- length (1)
- map (2)
- map! (2)
- max (4)
- min (4)
- minmax (2)
- new (3)
- none? (3)
- one? (3)
- pack (2)
- permutation (2)
- pop (2)
- prepend (1)
- product (2)
- push (1)
- rassoc (1)
- reject (2)
- reject! (2)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (1)
- reverse (1)
- reverse! (1)
-
reverse
_ each (2) - rindex (3)
- rotate (1)
- rotate! (1)
- sample (4)
- select (2)
- select! (2)
- shelljoin (1)
- shift (2)
- shuffle (2)
- shuffle! (2)
- size (1)
- slice (3)
- slice! (3)
- sort (2)
- sort! (2)
-
sort
_ by! (2) - sum (2)
- take (1)
-
take
_ while (2) -
to
_ a (1) -
to
_ ary (1) -
to
_ csv (1) -
to
_ h (2) -
to
_ s (1) - transpose (1)
-
try
_ convert (1) - union (1)
- uniq (2)
- uniq! (2)
- unshift (1)
-
values
_ at (1) - zip (2)
- | (1)
検索結果
-
Array
. try _ convert(obj) -> Array | nil (4.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
//}...