1 package ExampleMooRoleWithAttribute;;
3 # Note that autoclean here is the key bit!
4 # It causes the metaclass to be loaded and used before the 'has' fires
5 # so Moo needs to blow it away again at that point so the attribute gets
7 use namespace::autoclean;