Issue #11052 has been updated by Piotr Szotkowski. Apologies if you're busy and I should just wait (happy to do it!), but it's my first non-doc contribution and I'm not sure: is there anything I should add to this feature request? ---------------------------------------- Feature #11052: [PATCH] Blockless Pathname#ascend and #descend return Enumerator https://bugs.ruby-lang.org/issues/11052#change-52238 * Author: Piotr Szotkowski * Status: Open * Priority: Normal * Assignee: ---------------------------------------- It would be beneficial for blockless `Pathname#ascend` and `#descend` to return an `Enumerator` (rather than raise a `LocalJumpError`). Example use case of finding the Git root of the current directory: ~~~ git_dir = Pathname.new('.git') Pathname.pwd.ascend.find { |dir| dir.entries.include?(git_dir) } ~~~ ---Files-------------------------------- 0001-Blockless-Pathname-ascend-and-descend-return-Enumera.patch (3.44 KB) -- https://bugs.ruby-lang.org/