class Marten::Asset::Finder::FileSystem

Overview

Represents an asset finder allowing to find assets in the local file system, in a given directory.

Defined in:

marten/asset/finder/file_system.cr

Constructors

Instance Method Summary

Instance methods inherited from class Marten::Asset::Finder::Base

find(filepath : String) : String find, list : Array(Tuple(String, String)) list

Constructor Detail

def self.new(root : String) #

[View source]

Instance Method Detail

def find(filepath : String) : String #
Description copied from class Marten::Asset::Finder::Base

Returns the absolute path corresponding to the passed file path.


[View source]
def list : Array(Tuple(String, String)) #
Description copied from class Marten::Asset::Finder::Base

Returns an array of all the available relative and absolute paths for the underlying assets.


[View source]
def root : String #

[View source]