laziness, impatience, and hubris | |
PerlMonks |
Re: changing moose object classes on the goby Brutha (Friar) |
on Apr 08, 2013 at 13:19 UTC ( [id://1027501]=note: print w/replies, xml ) | Need Help?? |
I had a similar problem. I receive a minimal abstract object and changed it into a specialized one to make life easier. What I did was creating a new class "Labrador" with the superclass "Dog" and a role "LabradorMethodsAndAtributes". Well, in my case it wasn't dogs. Shortened, adjusted, unrunable code:
Now you have an object which isa "Felidae" and a "Tiger" and does "stripecount". And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
In Section
Seekers of Perl Wisdom
|
|