class Sprockets::Rails::HelperAssetResolvers::Manifest
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/sprockets/rails/helper.rbs class Sprockets::Rails::HelperAssetResolvers::Manifest def asset_path: (String path, true digest, ?nil allow_non_precompiled) -> nil def digest_path: (String path, ?nil allow_non_precompiled) -> nil def initialize: (#<Class:0x00000001179e2bc8> view) -> void end
:nodoc:
def asset_path(path, digest, allow_non_precompiled = false)
Experimental RBS support (using type sampling data from the type_fusion
project).
def asset_path: (String path, true digest, ?nil allow_non_precompiled) -> nil
This signature was generated using 3 samples from 1 application.
def asset_path(path, digest, allow_non_precompiled = false) if digest digest_path path, allow_non_precompiled end end
def digest_path(path, allow_non_precompiled = false)
Experimental RBS support (using type sampling data from the type_fusion
project).
def digest_path: (String path, ?nil allow_non_precompiled) -> nil
This signature was generated using 2 samples from 1 application.
def digest_path(path, allow_non_precompiled = false) @manifest.assets[path] end
def find_debug_asset(path)
def find_debug_asset(path) nil end
def initialize(view)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (#<Class:0x00000001179e2bc8> view) -> void
This signature was generated using 1 sample from 1 application.
def initialize(view) @manifest = view.assets_manifest raise ArgumentError, 'config.assets.resolve_with includes :manifest, but app.assets_manifest is nil' unless @manifest end
def integrity(path)
def integrity(path) if meta = metadata(path) meta["integrity"] end end
def metadata(path)
def metadata(path) if digest_path = digest_path(path) @manifest.files[digest_path] end end