--- trunk/lib/Frey/Introspect.pm 2008/07/17 19:11:01 160 +++ trunk/lib/Frey/Introspect.pm 2008/10/28 20:46:35 197 @@ -155,11 +155,28 @@ my $attr = $meta->get_attribute($_); my ( $before, $title, $after ) = ( '', '', '' ); ( $before, $title, $after ) = ( '', ' title="required"', '' ) if $attr->is_required; - qq|$before$_$after| +warn $attr->dump; + foreach my $check ( qw/has_type_constraint has_handles is_weak_ref is_required is_lazy should_coerce should_auto_deref has_trigger has_documentation has_applied_traits/ ) { + my $getter; + + $getter = $check; + $getter =~ s/^has_//; + + if ( $attr->$check ) { + if ( $getter eq $check ) { + $after .= "$check "; + } else { + $after .= qq{$check}; + $after .= '' . $attr->$getter->dump . '' if $getter ne $check; + $after .= ' '; + } + } + } + qq|$before$_$after| } sort $meta->get_attribute_list } - my $table = qq||; + my $table = qq|
MethodsAttributes
|; while ( @methods || @attributes ) { my ($m,$a) = ( shift @methods, shift @attributes ); $m ||= '';
MethodsAttributesProperties