Mojolicious::Plugin::AssetPack::Asset - Represents an asset file
Mojolicious::Plugin::AssetPack::Asset is class that can represent a file on disk.
This class is EXPERIMENTAL.
$fh = $self->handle; $self = $self->handle($fh);
Returns a filehandle to "path" with the correct read/write mode, dependent on the file system permissions.
$str = $self->path; $self = $self->path($str);
Holds the location of the file.
$self = $self->add_chunk($chunk);
Will append a
$chunk to the "path".
$content = $self->slurp;
Will return the contents of "path".
$self = $self->spurt($content);
Used to truncate and write
$content to "path".
Copyright (C) 2015, Jan Henning Thorsen
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Jan Henning Thorsen -