Hi

I am extending a non-Moose class, and I want to add an attribute to my
derived class. Problem is, the base class complains (loudly) if it
gets attributes it was not expecting - and it seems the new attribute
in the derived class get passed down to the base, hence the problem.
Is there an easy way to remove an attribute from the constructor hash
once it has been used to initialize an attribute? Something like this
would be nice:

has type => (
    is        => 'ro',
    gobble => 1 # remove element from constructor hash when used to
initialize this attribute
);

Cheers

Reply via email to