Masaki Nakagawa

NAME

MouseX::Param - A Mouse role for manipulating params

SYNOPSIS

    package MyApp;
    use Mouse;
    with 'MouseX::Param';

    package main;

    my $app = MyApp->new(params => {
        foo => 10,
        bar => 20,
    });

    # getting params
    $app->param('foo'); # 10

    # getting list of params
    $app->param(); # foo, bar

    # setting params
    $app->param(foo => 30, bar => 40);

DESCRIPTION

MouseX::Param is a simple Mouse role which provides a CGI like param method.

METHODS

param

PROPERTIES

params

AUTHOR

NAKAGAWA Masaki <masaki@cpan.org>

THANKS TO

Stevan Little, "AUTHOR" in MooseX::Param

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Mouse, MooseX::Param