class Passifier::StaticFile

A single local static file asset

Attributes

content[R]
filename[R]
name[R]
path[R]

Public Class Methods

new(name, path_to_file) click to toggle source

@param [String, Symbol] name The name of the asset @param [String] path_to_file The local path to the asset file

# File lib/passifier/static_file.rb, line 13
def initialize(name, path_to_file)
  @name = name
  @path = path_to_file
  @content = File.open(@path, 'rb') {|file| file.read }
end