class Fixnum
Integer extensions for file and dir sizes (returned in bytes).
Example:
box.files_flattened.select { |f| f.size > 10.mb }
Public Instance Methods
gb()
click to toggle source
# File lib/rush/fixnum_ext.rb, line 15 def gb mb * 1024 end
kb()
click to toggle source
# File lib/rush/fixnum_ext.rb, line 7 def kb self * 1024 end
mb()
click to toggle source
# File lib/rush/fixnum_ext.rb, line 11 def mb kb * 1024 end