diff options
| author | Naoto Kaneko | 2017-02-24 17:44:18 +0900 |
|---|---|---|
| committer | Naoto Kaneko | 2017-02-24 17:44:18 +0900 |
| commit | 56a0afe5792d398d1682426bbebb1e53346b34d5 (patch) | |
| tree | 06896b3717e014f946fe3ad82d406e7eae5d4548 /Library/Homebrew/extend | |
| parent | d4df9d44e09df6197275113b266df2b7d51a0339 (diff) | |
| download | brew-56a0afe5792d398d1682426bbebb1e53346b34d5.tar.bz2 | |
Extend #ds_file? in Pathname
Diffstat (limited to 'Library/Homebrew/extend')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index cfb028704..12dca4320 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -457,6 +457,10 @@ class Pathname end end + def ds_store? + basename.to_s == ".DS_Store" + end + # https://bugs.ruby-lang.org/issues/9915 if RUBY_VERSION == "2.0.0" prepend Module.new { |
