220件ヒット
[201-220件を表示]
(0.017秒)
ライブラリ
- ビルトイン (220)
キーワード
- === (11)
- class (11)
-
enum
_ for (22) - extend (11)
-
instance
_ variables (11) -
is
_ a? (11) -
kind
_ of? (11) - method (11)
- methods (11)
-
private
_ methods (11) -
protected
_ methods (11) -
public
_ method (11) -
public
_ methods (11) -
remove
_ instance _ variable (11) -
respond
_ to? (11) -
singleton
_ method (11) -
singleton
_ methods (11) -
to
_ enum (22)
検索結果
先頭2件
-
Object
# to _ enum(method = :each , *args) -> Enumerator (7.0) -
Enumerator.new(self, method, *args) を返します。
...array from being modified
a = [1, 2, 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__ はここでは :repe... -
Object
# to _ enum(method = :each , *args) {|*args| . . . } -> Enumerator (7.0) -
Enumerator.new(self, method, *args) を返します。
...array from being modified
a = [1, 2, 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__ はここでは :repe...