207件ヒット
[201-207件を表示]
(0.016秒)
ライブラリ
- ビルトイン (180)
-
minitest
/ spec (15) - pp (12)
キーワード
- clone (12)
- dup (12)
-
enum
_ for (24) -
initialize
_ copy (12) - method (12)
-
must
_ be (1) -
must
_ be _ close _ to (1) -
must
_ be _ empty (1) -
must
_ be _ instance _ of (1) -
must
_ be _ kind _ of (1) -
must
_ be _ nil (1) -
must
_ be _ same _ as (1) -
must
_ be _ within _ delta (1) -
must
_ be _ within _ epsilon (1) -
must
_ equal (1) -
must
_ include (1) -
must
_ match (1) -
must
_ raise (1) -
must
_ respond _ to (1) -
must
_ throw (1) -
pretty
_ print _ inspect (12) -
public
_ method (12) -
public
_ send (24) -
remove
_ instance _ variable (12) -
respond
_ to? (12) -
singleton
_ class (12) -
singleton
_ method (12) -
to
_ enum (24)
検索結果
-
Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator (8.0) -
Enumerator.new(self, method, *args) を返します。
...3]
p(a.to_enum) #=> #<Enumerator: [1, 2, 3]:each>
//}
//emlist[例(ブロックを指定する場合)][ruby]{
module Enumerable
def repeat(n)
raise ArgumentError, "#{n} is negative!" if n < 0
unless block_given?
# __method__ はここでは :repeat
return to_enum(__method__,...