It works:
use MooseX::Declare;
class Example {
method my_method() {
}
}
This does not seem to create a method:
use MooseX::Declare;
class Example {
method my_method()
{
}
}
Am I missing something, or is it a limitation MooseX::Declarethat the opening curly bracket must go on the same line as the "method"?
- edit -
MooseX::Declare= 0.35
Devel::Declare= 0.006004 - it seems like I have version in Devel::Declare, later versions seem to be unavailable in ActiveState perl due to some build problem: http://code.activestate.com/ppm/Devel-Declare/ (up to 0.006008 inclusive)
source
share