NAME
Mojolicious::Plugin::AssetPack::Asset - Represents an asset file
DESCRIPTION
Mojolicious::Plugin::AssetPack::Asset is class that can represent a file on disk.
This class is EXPERIMENTAL.
ATTRIBUTES
handle
$fh = $self->handle;
$self = $self->handle($fh);
Returns a filehandle to "path" with the correct read/write mode, dependent on the file system permissions.
path
$str = $self->path;
$self = $self->path($str);
Holds the location of the file.
METHODS
add_chunk
$self = $self->add_chunk($chunk);
Will append a $chunk
to the "path".
slurp
$content = $self->slurp;
Will return the contents of "path".
spurt
$self = $self->spurt($content);
Used to truncate and write $content
to "path".
COPYRIGHT AND LICENSE
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.
AUTHOR
Jan Henning Thorsen - jhthorsen@cpan.org