App::vaporcalc::Role::Store
# See App::vaporcalc::Recipe, App::vaporcalc::RecipeResultSet use Moo; with 'App::vaporcalc::Role::Store';
This role provides "save" and "load" methods that attempt to serialize or retrieve objects via JSON::MaybeXS; this is used by App::vaporcalc::Recipe & App::vaporcalc::RecipeResultSet to preserve e-liquid recipes.
Consumers are expected to implement a TO_JSON method that returns a plain HASH for storage.
TO_JSON
HASH
Takes a path (as a string or a Path::Tiny object) and attempts to serialize the $self object to the given path.
$self
Objects are expected to provide their own TO_JSON method; if it is not available, an exception is thrown.
Takes a path (as a string or a Path::Tiny object) and attempts to create a new object by calling new().
new()
(Usually called as a class method.)
Jon Portnoy <avenj@cobaltirc.org>
To install App::vaporcalc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::vaporcalc
CPAN shell
perl -MCPAN -e shell install App::vaporcalc
For more information on module installation, please visit the detailed CPAN module installation guide.