Slide 20
Slide 20 text
Metaobject Protocol
has cache => (
is => 'ro',
);
Moose::Meta::Attribute
hasMoose::Meta::AttributeͷΠϯελϯεΛ࡞Γ·͢
Thursday, September 10, 2009
When you say "has" it creates an instance of the Moose::Meta::Attribute class, which holds
information like the attribute's name, its type constraint, default value, etc.