188 |
@attributes = map { |
@attributes = map { |
189 |
my $name = $_; |
my $name = $_; |
190 |
my $attr = $meta->get_attribute($name); |
my $attr = $meta->get_attribute($name); |
191 |
warn "## ref attr: ",ref( $attr ); |
warn "## attr $name ref ",ref( $attr ) if $self->debug; |
192 |
my ( $before, $title, $after ) = ( '', '', '' ); |
my ( $before, $title, $after ) = ( '', '', '' ); |
193 |
( $before, $title, $after ) = ( '<b>', ' title="required"', '</b>' ) if $attr->is_required; |
( $before, $title, $after ) = ( '<b>', ' title="required"', '</b>' ) if $attr->is_required; |
|
warn $attr->dump(3); |
|
194 |
foreach my $check ( qw/has_type_constraint has_handles is_weak_ref is_required is_lazy should_coerce should_auto_deref has_default has_trigger has_documentation has_applied_traits/ ) { |
foreach my $check ( qw/has_type_constraint has_handles is_weak_ref is_required is_lazy should_coerce should_auto_deref has_default has_trigger has_documentation has_applied_traits/ ) { |
195 |
my $getter; |
my $getter; |
196 |
|
|
256 |
|
|
257 |
my $html = { |
my $html = { |
258 |
title => $class, |
title => $class, |
259 |
body => join("\n" |
body => join("\n", |
260 |
, qq|<h1>$class</h1>|, |
qq|<h1>$class</h1>|, |
261 |
, qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|, |
qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|, |
262 |
, ( $pod ? qq|<a href="#___top" title="Skip to POD" class="frey-skip">pod</a>| : '' ) |
$pod ? qq|<a class="frey-skip" href="#___top" title="Skip to POD" >pod</a>| : '', |
263 |
, qq|<a href="#source" title="Skip to source" class="frey-skip">source</a>| |
$source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '', |
264 |
, qq|$table\n$pod\n</div>\n| |
qq|$table\n$pod\n</div>\n|, |
265 |
, qq|<h1>Source</h1><a name="source"></a><div class="frey-source">$source</div>| |
qq|<h1>Source</h1><a name="source"></a><div class="frey-source">$source</div>|, |
266 |
), |
), |
267 |
}; |
}; |
268 |
|
|