ruby/ruby — pull request #694 by krissi (2014-08-06 12:15:14+00:00)
Title: Pathname#ascend, #descend returning Enumerator

This pull request changes Pathname#ascend and Pathname#descend to return an Enumerator if no block is given.

I also had to change the existing tests from using #to_enum to block form to test the existing behavior, not the new.