Mojo::Asset - Asset Base Class
use base 'Mojo::Asset';
Mojo::Asset is a asset base class.
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;
To install Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo
CPAN shell
perl -MCPAN -e shell install Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.