NAME
Mojo::Asset - Asset Base Class
SYNOPSIS
use base 'Mojo::Asset';
DESCRIPTION
Mojo::Asset is an abstract base class for assets.
METHODS
Mojo::Asset inherits all methods from Mojo::Base and implements the following new ones.
add_chunk
$asset = $asset->add_chunk('foo bar baz');
contains
my $position = $asset->contains('bar');
get_chunk
my $chunk = $asset->get_chunk($offset);
move_to
$asset = $asset->move_to('/foo/bar/baz.txt');
size
my $size = $asset->size;
slurp
my $string = $file->slurp;