class Athena::MIME::Part::File
   
  - Athena::MIME::Part::File
- Reference
- Object
Overview
An abstraction that allows representing a file without needing to keep the file open.
Defined in:
part/file.crConstructors
Instance Method Summary
- 
        #content_type : String
        
          Attempts to guess the content type of the file based on its path. 
- 
        #filename : String
        
          Returns the name of the file, inferring it based on the basename of its path if not provided explicitly. 
- 
        #path : String
        
          Returns the path to the file on the filesystem. 
- 
        #size : Int
        
          Returns the size of the file in bytes. 
Constructor Detail
Instance Method Detail
        
        def content_type : String
        #
      
      
        Attempts to guess the content type of the file based on its path.
Falls back to application/octet-stream.
        
        def filename : String
        #
      
      
        Returns the name of the file, inferring it based on the basename of its path if not provided explicitly.