Module: DiskUsageExtension
- Included in:
- Pathname
- Defined in:
- Library/Homebrew/extend/pathname.rb
Instance Method Summary collapse
Instance Method Details
#abv ⇒ Object
22 23 24 25 26 27 28 |
# File 'Library/Homebrew/extend/pathname.rb', line 22 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 ⇒ Object
8 9 10 11 12 13 |
# File 'Library/Homebrew/extend/pathname.rb', line 8 def disk_usage return @disk_usage if @disk_usage compute_disk_usage @disk_usage end |
#file_count ⇒ Object
15 16 17 18 19 20 |
# File 'Library/Homebrew/extend/pathname.rb', line 15 def file_count return @file_count if @file_count compute_disk_usage @file_count end |