aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-12-12 08:22:39 -0800
committerAdam Vandenberg2013-12-12 08:22:39 -0800
commitfbf6c23907e0c5a080d76a6d6fa1cce09293b47c (patch)
treeb1c7962ba16e11506a842bf09acba2f4d6190811 /Library
parentdee0dfae7565795789990de25537794c2108ba7b (diff)
downloadhomebrew-fbf6c23907e0c5a080d76a6d6fa1cce09293b47c.tar.bz2
monkey around for emacs' code highlighter
The abv method has a construct that causes emacs to not highlight the rest of pathname.rb, so move abv lower in the file. Sorry.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 796a2e491..6a4397443 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -173,13 +173,6 @@ class Pathname
FileUtils.chmod_R perms, to_s
end
- def abv
- out=''
- n=`find #{to_s} -type f ! -name .DS_Store | wc -l`.to_i
- out<<"#{n} files, " if n > 1
- out<<`/usr/bin/du -hs #{to_s} | cut -d"\t" -f1`.strip
- end
-
def version
require 'version'
Version.parse(self)
@@ -429,6 +422,13 @@ class Pathname
end
end
+ def abv
+ out=''
+ n=`find #{to_s} -type f ! -name .DS_Store | wc -l`.to_i
+ out<<"#{n} files, " if n > 1
+ out<<`/usr/bin/du -hs #{to_s} | cut -d"\t" -f1`.strip
+ end
+
# We redefine these private methods in order to add the /o modifier to
# the Regexp literals, which forces string interpolation to happen only
# once instead of each time the method is called. This is fixed in 1.9+.