Reaction::Class(3)

NAME
Reaction::Class

DESCRIPTION

SEE ALSO

•   Catalyst

•   Reaction::Manual

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_base

  set_or_lazy_build $attrname
Will 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 $attrname
Will make your attributes lazy and required, if they are not set and their accessor is called an exception will be thrown

  trigger_adopt $attrname

  register_inc_entry

  reflect_attributes_from $from_class, @attrs
Create 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.

  does
Alias 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 };

  run

AUTHORS

•   Matt S. Trout

•   K. J. Cheetham

•   Guillermo Roditi

•   Justin Hunter

•   Jess Robinson (Documentation)

•   Kaare Rasmussen (Documentation)

•   Andres N. Kievsky (Documentation)

•   Robert Sedlacek (Documentation)

SPONSORS

•   Ionzero

    Ionzero <http://www.ionzero.com/> sponsored the writing of the Reaction::Manual::Tutorial, Reaction::Manual::Overview and Reaction::Manual::Widgets documentations as well as improvements to Reaction::Manual::Intro and many API documentation improvements throughout the project.

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