Data::Crumbr::Default - Default renderer for Data::Crumbr
version 0.1.1
This is the default encoder implementation, and most probably the only oney you really need. And most probably, you really not need to directly use it.
returns the encoded array key, optionally opening an array and keeping into account the prefix, the suffix and the encoder for the key
returns an iterator sub starting from 0 up to the number of elements in the array
returns the encoded hash key, optionally opening an hash and keeping into account the prefix, the suffix and the encoder for the key
returns an iterator sub that returns each key in the input hash, sorted lexicographically
this method is called whenever an external iteration component hits a leaf and wants to push a new encoded record to the output
my $enc = Data::Crumbr::Default->new(%args);
create a new encoder object
reset the encoder, i.e. wipe out all the internal state to start a new encoding cycle.
get the outcome of the encoding. Not guaranteed to work.
Flavio Poletti <polettix@cpan.org>
Copyright (C) 2015 by Flavio Poletti <polettix@cpan.org>
This module is free software. You can redistribute it and/or modify it under the terms of the Artistic License 2.0.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Data::Crumbr, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Crumbr
CPAN shell
perl -MCPAN -e shell install Data::Crumbr
For more information on module installation, please visit the detailed CPAN module installation guide.