110件ヒット
[101-110件を表示]
(0.364秒)
ライブラリ
- ビルトイン (110)
モジュール
- Enumerable (22)
キーワード
- grep (22)
- methods (11)
-
private
_ instance _ methods (11) -
private
_ methods (11) -
protected
_ instance _ methods (11) -
protected
_ methods (11) -
public
_ instance _ methods (11) -
public
_ methods (11)
検索結果
-
Enumerable
# grep(pattern) {|item| . . . } -> [object] (11208.0) -
pattern === item が成立する要素を全て含んだ配列を返します。
...返します。
@param pattern 「===」メソッドを持つオブジェクトを指定します。
//emlist[例][ruby]{
['aa', 'bb', 'cc', 'dd', 'ee'].grep(/[bc]/) # => ["bb", "cc"]
Array.instance_methods.grep(/gr/) # => [:grep, :group_by]
//}
@see Enumerable#select
@see Enumerable#grep_v...