Re: builder vs initializer

[email protected] (Yuval Kogman)
Newsgroups perl.moose
Message-ID <[email protected]>
On Sat, Apr 19, 2008 at 21:20:42 -0700, Ian Tegebo wrote:

> Does this mean a method in My::Class vs one in Class::MOP::Attribute
> or some subclass thereof?

Yes, builder => "foo" will cause new to call $class->foo, not
$class->meta->get_attribute($attr)->foo.

-- 
  Yuval Kogman <[email protected]>
http://nothingmuch.woobling.org  0xEBD27418
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.