Issue #7692 has been reported by marcandre (Marc-Andre Lafortune).

----------------------------------------
Bug #7692: Enumerator::Lazy#drop_while and take_while should require a block.
https://bugs.ruby-lang.org/issues/7692

Author: marcandre (Marc-Andre Lafortune)
Status: Open
Priority: Normal
Assignee: marcandre (Marc-Andre Lafortune)
Category: core
Target version: 2.0.0
ruby -v: r38800


Enumerator::Lazy#drop_while and take_while should require a block.

Currently:

    [1].lazy.drop_while.force # => LocalJumpError: no block given
    [1].lazy.take_while.force # => LocalJumpError: no block given

After patch, these will raise an ArgumentError "tried to call lazy drop_while without a block"


-- 
http://bugs.ruby-lang.org/