The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojo::Asset - Asset Base Class

SYNOPSIS

    use base 'Mojo::Asset';

DESCRIPTION

Mojo::Asset is a asset base class.

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;