class Beaver::FileWrapper

A utility to allow users to set the content-type for files

Attributes

content_type[R]
file[R]

Public Class Methods

new(file, content_type: 'application/octet-stream') click to toggle source
# File lib/beaver/utilities/file_wrapper.rb, line 12
def initialize(file, content_type: 'application/octet-stream')
  @file = file
  @content_type = content_type
end