Class: Square::FileWrapper
- Inherits:
-
CoreLibrary::FileWrapper
- Object
- CoreLibrary::FileWrapper
- Square::FileWrapper
- Defined in:
- lib/square/utilities/file_wrapper.rb
Overview
A utility to allow users to set the content-type for files
Instance Method Summary collapse
-
#initialize(file, content_type: 'application/octet-stream') ⇒ FileWrapper
constructor
The constructor.
Constructor Details
#initialize(file, content_type: 'application/octet-stream') ⇒ FileWrapper
The constructor.
7 8 9 |
# File 'lib/square/utilities/file_wrapper.rb', line 7 def initialize(file, content_type: 'application/octet-stream') super end |