class Netfira::WebConnect::RackApp::Exceptions::SendFile

Attributes

path[R]

Public Class Methods

new(path, content = nil) click to toggle source
# File lib/netfira/web_connect/rack_app/exceptions/send_file.rb, line 6
def initialize(path, content = nil)
  @path = path
  @content = content
end

Public Instance Methods

content() click to toggle source
# File lib/netfira/web_connect/rack_app/exceptions/send_file.rb, line 11
def content
  @content ||= path.read.force_encoding('ASCII-8BIT')
end