|
NAMEReaction::Class DESCRIPTIONSEE ALSO
Unstructured reminders(will properly format and stuff later. no time right now) "use"ing "Reaction::Class" will alias the current package name see aliased. package MyApp::Pretty::Picture
# Picture expands to 'MyApp::Pretty::Picture'
class Picture, which { ...
default_baseset_or_lazy_build $attrnameWill make your attributes lazy and required, if they are not set they will default to the value returned by "&build_$attrname" has created_d => (isa => 'DateTime', set_or_lazy_build('created_d') );
sub build_created_d{ DateTime->now }
set_or_lazy_fail $attrnameWill make your attributes lazy and required, if they are not set and their accessor is called an exception will be thrown trigger_adopt $attrnameregister_inc_entryreflect_attributes_from $from_class, @attrsCreate attributes in the local class that mirror the specified @attrs in $from_class class $name [, is $superclass ], which {Sugary class declaration, will create a a package $name with an optional base class of $superclass. The class declaration, should be placed inside the brackets using "implements" to declare a method and "has" to declare an attribute. doesAlias to "with" for the current package, see "Moose::Role" implements $method_name [is | which | as]Only valid whithin a class block, allows you to declare a method for the class. implements 'current_date' => as { DateTime->today };
runAUTHORS
SPONSORS
LICENSEThis library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
|