Group
Extension

Matches 1

MooseX-Role-Flyweight ( S/ST/STEVENL/MooseX-Role-Flyweight-1.03.tar.gz, STEVENL, 2014; MetaCPAN )
MooseX-Role-Flyweight/lib/MooseX/Role/Flyweight.pm ( view source; MetaCPAN )
weight::VERSION = '1.03';

use 5.006;
use JSON 2.00 ();  # works with JSON::XS
use Moose::Role;
use namespace::autoclean;
use Scalar::Util ();

my $JSON = JSON->new->utf8->canonical;

our %INSTANCES;
| ref( $args[0] ) ne 'HASH' )
        ? $class->BUILDARGS(@args)
        : $args[0];

    return $JSON->encode($args);
}

1;

__END__

=pod

=head1 NAME

MooseX::Role::Flyweight - Automatically memoiz

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.