class
StaticAssets::DiskStore
- StaticAssets::DiskStore
- Reference
- Object
Overview
Filesystem-backed asset store with symlink-escape protection and .br/.gz sidecars.
Included Modules
Defined in:
static_assets/store.crConstructors
Instance Method Summary
-
#directory?(relative_path : String) : Bool
Returns
trueifrelative_pathresolves to a directory (forindex_filefallback). -
#resolve(relative_path : String, accept_encoding : String | Nil, precompressed : Bool = true) : ResolvedAsset | Nil
Resolves
relative_path(slash-delimited, without leading/) and selects the preferred representation according toaccept_encoding. - #root : String
Instance methods inherited from module StaticAssets::Store
directory?(relative_path : String) : Bool
directory?,
resolve(relative_path : String, accept_encoding : String | Nil, precompressed : Bool = true) : ResolvedAsset | Nil
resolve
Constructor Detail
Instance Method Detail
def directory?(relative_path : String) : Bool
#
Description copied from module StaticAssets::Store
Returns true if relative_path resolves to a directory (for index_file fallback).
def resolve(relative_path : String, accept_encoding : String | Nil, precompressed : Bool = true) : ResolvedAsset | Nil
#
Description copied from module StaticAssets::Store
Resolves relative_path (slash-delimited, without leading /) and selects the
preferred representation according to accept_encoding.