NAME
MooseX::Declare - Declarative syntax for Moose
SYNOPSIS
use MooseX::Declare;
class BankAccount {
has 'balance' => ( isa => 'Num', is => 'rw', default => 0 );
method deposit (Num $amount) {
$self->balance( $self->balance + $amount );
}
method withdraw (Num $amount) {
my $current_balance = $s
more»
0.26 Sun, 16 Aug 2009 14:48:12 +0200
* Declare dependency on MooseX::AttributeHelpers.
0.25 Sun, 16 Aug 2009 05:31:59 +0200
* Don't persist the inner keywords over more than one invocation of the declarator.
* Pass along the current context to import_symbols_from and imported_moose_symbols.
* Implement parameterizable roles.
0.24 Sat, 15 Aug 2009 23:48:09 +0200
* Add repository and
more»
* Implement class Foo;
* Only set up the matching declarators inside of class and role.
(i.e. no augment in role)
* Implemet subclass { ... }, meaning class Foo extends OuterClass { ... } for
nested classes.
* Allow $class = extends Foo { ... }; and $class = with Role { ... }; for
creating anonymous classes. Not only $class = class extends Foo { .. };
doesn't read very well, it's also hard
more»