
trysil
Novice
Jun 30, 2011, 4:25 AM
Post #1 of 2
(1178 views)
|
Moose attribute using my own class def
|
Can't Post
|
|
Hi! I have a class foo with a attribute "attr":
package foo; use Moose; has 'attr' => ( is => "rw", isa=>"MyClass", ... ); ... How do I initiate 'attr'? Somehow I need to call 'new' for the attr to initiate my can't see how... or am I just blind and stupid?
|