in reply to Problem with around BUILDARGS
With MooseX::NonMoose, you want to use FOREIGNBUILDARGS and it should return the arguments for the extended NonMoose class, this version works.
sub FOREIGNBUILDARGS { my $class = shift; my %args = ( @_ == 1 ? %{ $_[0] } : @_ ); $args{host}//="localhost"; $args{port}//=4444; $args{browser}//="*firefox"; $args{browser_url}//='http://wwww.google.com'; return %args; }
-stvn
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Problem with around BUILDARGS
by saintex (Scribe) on Mar 24, 2011 at 14:29 UTC | |
Re^2: Problem with around BUILDARGS
by saintex (Scribe) on Mar 28, 2011 at 10:58 UTC | |
by stvn (Monsignor) on Mar 28, 2011 at 17:01 UTC | |
by saintex (Scribe) on Mar 29, 2011 at 14:23 UTC | |
by saintex (Scribe) on Apr 19, 2011 at 16:45 UTC | |
by stvn (Monsignor) on Apr 21, 2011 at 00:49 UTC | |
by saintex (Scribe) on Apr 21, 2011 at 08:38 UTC | |
|
In Section
Seekers of Perl Wisdom