On Wed, Oct 14, 2009 at 11:08 AM, Yuri Shtil <yu...@juniper.net> wrote:
>> $obj->meta->has_attribute('foo')
>>
>> Reading through the Class::MOP docs is helpful in finding out how to
>> access all of the class definition information that gets stored.
>>
>> -doy
>>
>
> Sorry for reopening an old subject.
> This does not work if the attribute is inherited.
>
> --
>
> Yuri
>
>

$obj->meta->find_attribute_by_name('foo') will check superclasses too.

Shawn

Reply via email to