< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事(スレッド移動)
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #17116 has been reported by S_H_ (Shun Hiraoka).
----------------------------------------
Feature #17116: raise ArgumentError in Enumerator#new in no given blocks
https://bugs.ruby-lang.org/issues/17116
* Author: S_H_ (Shun Hiraoka)
* Status: Open
* Priority: Normal
----------------------------------------
Now, `Enumerator#new` is allow this code(no given blocks).
```ruby
obj = Object.new
Enumerator.new(obj)
```
But, warning is displayed(since `ruby-2.0.0-preview2`).
```bash
-e:1: warning: Enumerator.new without a block is deprecated; use Object#to_enum instead
```
I think it's okay to remove this behaviour.
And I think that it seems natural to raise ArgumentError if no block given.
--
https://bugs.ruby-lang.org/