るりまサーチ

最速Rubyリファレンスマニュアル検索!
207件ヒット [201-207件を表示] (0.016秒)
トップページ > クラス:Object[x] > クエリ:raise[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin raise
  2. kernel raise
  3. fiber raise
  4. thread raise
  5. e2mmap raise

検索結果

<< < 1 2 3 >>

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__,...
<< < 1 2 3 >>