Object-InsideOut - Re: :Restricted methods imported into child classes?

Posted on Wed Jan 18 20:38:37 2006 by jdhedden in response to 1639 (See the whole thread of 9)
Re: :Restricted methods imported into child classes?
There is no conflict. The syntax you want is in the docs:
If a parent class takes parameters, enclose them in an array ref (mandatory) following the name of the parent class: package My::Project { use Object::InsideOut 'My::Class' => [ 'param1', 'param2' ], 'Another::Class' => [ 'param' ]; ... }
In your case, you would use:
package ChildClass; { use Object::InsideOut 'ParentClass' => [ '_func' ]; ... }
Direct Responses: 1642 | 1643 | Write a response