[#76442] [Ruby trunk Feature#11741] Migrate Ruby to Git from Subversion — naruse@...
Issue #11741 has been updated by Yui NARUSE.
3 messages
2016/07/19
[#76515] [Ruby trunk Bug#12610] webrick: protect from httpoxy — nagachika00@...
Issue #12610 has been updated by Tomoyuki Chikanaga.
3 messages
2016/07/22
[ruby-core:76404] [Ruby trunk Feature#12596] Add Pathname#empty? to be consistent with Dir.empty? and File.empty?
From:
johncbackus@...
Date:
2016-07-19 01:16:49 UTC
List:
ruby-core #76404
Issue #12596 has been reported by John Backus. ---------------------------------------- Feature #12596: Add Pathname#empty? to be consistent with Dir.empty? and File.empty? https://bugs.ruby-lang.org/issues/12596 * Author: John Backus * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- #9969 and #10121 introduced `Dir.empty?` and `File.empty?`. It would be very useful if `Pathname` had an instance method for performing these same checks. Since `Pathname` already has several methods which work for both files and directories (for example, `Pathname#exist?`) I propose adding `Pathname#empty?` which would work for expose the behavior that `File.empty?` and `Dir.empty?` provide. I think this change especially makes sense given that, just like `File.empty?` was added as an alias of `File.zero?`, it seems like `Pathname#zero?` should also benefit from the same naming improvement provided by this alias. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>