Issue #10217 has been reported by Dominic Sisneros. ---------------------------------------- Feature #10217: Dir constructor similar to Pathname constructor https://bugs.ruby-lang.org/issues/10217 * Author: Dominic Sisneros * Status: Open * Priority: Normal * Assignee: * Category: * Target version: Ruby 2.1.0 ---------------------------------------- Make Dir(path) an alias for Dir.new(path) Dir('.').entries Dir('test').each do |entry| .. -- https://bugs.ruby-lang.org/