Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Abstract Methods in Moose

by ikegami (Pope)
on Dec 12, 2009 at 21:56 UTC ( #812543=note: print w/replies, xml ) Need Help??


in reply to Re^2: Abstract Methods in Moose
in thread Abstract Methods in Moose

Why do you have a role and and a base class? You should use a role instead of a base class. All you need is
package Widget::Role; # Formerly Widget::Abstract use Moose::Role; requires qw( get_widget_type ); # Abstract methods ... # Other attributes and methods. 1;
package Widget::Snazzy; use Moose; with qw( Widget::Role ); sub get_widget_type { __PACKAGE__ } ... 1;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://812543]
help
Chatterbox?
[Discipulus]: marto also Re^2: Catalyst:: Dispatcher - usage of expand_actions has signature polemic, and yesterday was quoted in CB
[marto]: Discipulus concerned partys should report things. as tye mentioned in his post (linked in the other thread from yesterday) there is an approach and strategy for such things
[Discipulus]: which node yesterday?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2017-06-23 08:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (538 votes). Check out past polls.