| CatalystX-Declare documentation | Contained in the CatalystX-Declare distribution. |
CatalystX::Declare::Keyword::Model - Declare Catalyst Models
use CatalystX::Declare;
model MyApp::Web::Model::Random {
method upto (Int $n) { int(rand $n) }
}
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.
These methods are implementation details. Unless you are extending or developing CatalystX::Declare, you should not be concerned with them.
List[Str] Object->default_superclasses ()
Defaults to Catalyst::View.
See AUTHOR in CatalystX::Declare for author information.
This program is free software; you can redistribute it and/or modify it under the same terms as perl itself.
| CatalystX-Declare documentation | Contained in the CatalystX-Declare distribution. |
use MooseX::Declare; class CatalystX::Declare::Keyword::Model extends CatalystX::Declare::Keyword::Component { method default_superclasses { 'Catalyst::Model' } } __END__