class Propshaft::Compiler
Base compiler from which other compilers can inherit
Attributes
assembly[R]
Public Class Methods
new(assembly)
click to toggle source
# File lib/propshaft/compiler.rb, line 8 def initialize(assembly) @assembly = assembly end
Public Instance Methods
compile(asset, input)
click to toggle source
Override this in a specific compiler
# File lib/propshaft/compiler.rb, line 13 def compile(asset, input) raise NotImplementedError end
referenced_by(asset)
click to toggle source
# File lib/propshaft/compiler.rb, line 17 def referenced_by(asset) Set.new end
Private Instance Methods
url_prefix()
click to toggle source
# File lib/propshaft/compiler.rb, line 22 def url_prefix @url_prefix ||= File.join(config.relative_url_root.to_s, config.prefix.to_s).chomp("/") end