Actions
Bug #18158
closedPathname#each_entry without block does not return Enumerator
Description
Pathname#each_child
without block returns Enumerator
.
But Pathname#each_entry
without block does not return Enumerator
.
% ruby -r pathname -e 'p Pathname(".").each_child.class'
Enumerator
% ruby -r pathname -e 'p Pathname(".").each_entry.class'
-e:1:in `foreach': no block given (LocalJumpError)
from -e:1:in `each_entry'
from -e:1:in `<main>'
Actions
Like0
Like0Like0