John Napiorkowski > CatalystX-Declare-0.015 > CatalystX::Declare::Keyword::Model

Download:
CatalystX-Declare-0.015.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  1
View/Report Bugs
Source  

NAME ^

CatalystX::Declare::Keyword::Model - Declare Catalyst Models

SYNOPSIS ^

    use CatalystX::Declare;

    model MyApp::Web::Model::Random {

        method upto (Int $n) { int(rand $n) }
    }

DESCRIPTION ^

This handler is a simple extension of CatalystX::Declare::Keyword::Component and defaults to Catalyst::Model as superclass. Additionally, CLASS will be imported. See "class" in MooseX::Declare for more information on usage, since this keyword is subclass extending its parent's features.

SUPERCLASSES ^

CatalystX::Declare::Keyword::Component

METHODS ^

These methods are implementation details. Unless you are extending or developing CatalystX::Declare, you should not be concerned with them.

default_superclasses

    List[Str] Object->default_superclasses ()

Defaults to Catalyst::View.

SEE ALSO ^

CatalystX::Declare
CatalystX::Declare::Keyword::Component
"class" in MooseX::Declare

AUTHOR ^

See "AUTHOR" in CatalystX::Declare for author information.

LICENSE ^

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

syntax highlighting: