Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Moose: What about "class" attributes?

by John M. Dlugosz (Monsignor)
on Apr 30, 2011 at 08:37 UTC ( #902153=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $class = Class->with_traits('Role')->new( foo => 42 );
    
  2. or download this
    my $namespace = $class->meta->find_attribute_by_name('_trait_namespace
    +');
    ... $namespace->default ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://902153]
Approved by Old_Gray_Bear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2021-03-05 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (108 votes). Check out past polls.

    Notices?