class Propshaft::Compiler
Base compiler from which other compilers can inherit
Attributes
Public Class Methods
Source
# File lib/propshaft/compiler.rb, line 8 def initialize(assembly) @assembly = assembly end
Public Instance Methods
Source
# File lib/propshaft/compiler.rb, line 13 def compile(asset, input) raise NotImplementedError end
Override this in a specific compiler
Source
# File lib/propshaft/compiler.rb, line 17 def referenced_by(asset) Set.new end
Private Instance Methods
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