in reply to Re: Moose - two augmented methods in one class
in thread Moose - two augmented methods in one class
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Moose - two augmented methods in one class
by tobyink (Canon) on Jan 09, 2012 at 15:37 UTC | |
by tobyink (Canon) on Jan 09, 2012 at 16:13 UTC | |
by stvn (Monsignor) on Jan 11, 2012 at 05:19 UTC | |
by tobyink (Canon) on Jan 11, 2012 at 12:04 UTC | |
by stvn (Monsignor) on Jan 12, 2012 at 02:30 UTC |