Module: DiskUsageExtension Private
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #abv ⇒ String private
- #disk_usage ⇒ Integer private
- #file_count ⇒ Integer private
Instance Method Details
#abv ⇒ String
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
26 27 28 29 30 31 32 |
# File 'extend/pathname.rb', line 26 def abv out = +"" compute_disk_usage out << "#{number_readable(@file_count)} files, " if @file_count > 1 out << disk_usage_readable(@disk_usage).to_s out.freeze end |
#disk_usage ⇒ Integer
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
10 11 12 13 14 15 |
# File 'extend/pathname.rb', line 10 def disk_usage return @disk_usage if defined?(@disk_usage) compute_disk_usage @disk_usage end |
#file_count ⇒ Integer
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
18 19 20 21 22 23 |
# File 'extend/pathname.rb', line 18 def file_count return @file_count if defined?(@file_count) compute_disk_usage @file_count end |