class FsCache::Attributes::Size
Size
attribute. Can be:
-
Integer: File size
Public Instance Methods
attribute_for(file)
click to toggle source
Get the attribute for a given file
- Parameters
-
file (String): File to get the attribute for
- Result
-
Object: Corresponding attribute value
# File lib/fs_cache/attributes/size.rb, line 15 def attribute_for(file) File.stat(file).size end