Update: ignore this, tobyink is right, I didn't pay enough attention to the question
This cumbersome check is not really required. inner is no-op if there's no augment:
use 5.010; use strict; use warnings; { package C1; use Moose; sub test { return "<C1>".(inner()//'')."</C1>"; } } { package C2; use Moose; extends 'C1'; } my $c2 = C2->new; say $c2->test; __END__ <C1></C1>
In reply to Re^2: Moose - two augmented methods in one class
by zwon
in thread Moose - two augmented methods in one class
by roman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |