Sha256: 7c3f9fe09caffa258142aecc5b35bc47677285c432f572227a578b98ef4cce25
Contents?: true
Size: 439 Bytes
Versions: 9
Compression:
Stored size: 439 Bytes
Contents
module Propshaft::Resolver class Dynamic attr_reader :load_path, :prefix def initialize(load_path:, prefix:) @load_path, @prefix = load_path, prefix end def resolve(logical_path) if asset = load_path.find(logical_path) File.join prefix, asset.digested_path end end def read(logical_path) if asset = load_path.find(logical_path) asset.content end end end end
Version data entries
9 entries across 9 versions & 2 rubygems