
Mojo::Asset::Memory - In-Memory Asset

use Mojo::Asset::Memory;
my $asset = Mojo::Asset::Memory->new;
$asset->add_chunk('foo bar baz');
print $asset->slurp;

Mojo::Asset::Memory is a container for in-memory assets.

Mojo::Asset::Memory inherits all methods from Mojo::Asset and implements the following new ones.
newmy $asset = Mojo::Asset::Memory->new;
add_chunk $asset = $asset->add_chunk('foo bar baz');
contains my $position = $asset->contains('bar');
get_chunkmy $chunk = $asset->get_chunk($offset);
move_to $asset = $asset->move_to('/foo/bar/baz.txt');
sizemy $size = $asset->size;
slurpmy $string = $file->slurp;