103 |
return $out; |
return $out; |
104 |
} |
} |
105 |
|
|
106 |
=head1 OUTPUT GENERATION |
sub as_markup { |
|
|
|
|
=head2 markup |
|
|
|
|
|
$o->markup; |
|
|
|
|
|
=cut |
|
|
|
|
|
sub markup { |
|
107 |
my ( $self ) = @_; |
my ( $self ) = @_; |
108 |
|
|
109 |
$self->add_head( 'static/introspect.css' ); |
$self->add_head( 'static/introspect.css' ); |
203 |
} |
} |
204 |
$table .= qq|</table>|; |
$table .= qq|</table>|; |
205 |
|
|
206 |
my $pod = Frey::Pod->new( class => $class )->markup; |
my $pod = Frey::Pod->new( class => $class )->as_markup; |
207 |
$pod = $pod->{body} if ref($pod); |
$pod = $pod->{body} if ref($pod); |
208 |
|
|
209 |
my $path = $self->class_path( $class ); |
my $path = $self->class_path( $class ); |
229 |
# $source =~ s{</body.*$}{}s; |
# $source =~ s{</body.*$}{}s; |
230 |
|
|
231 |
|
|
|
use Frey::Run; |
|
|
my $class_method = $self->class_methods( $class ); |
|
232 |
my $runnable = join("\n", |
my $runnable = join("\n", |
233 |
map { $class_method->{$_} ? qq|<a href="/$class/$_">$_</a>| : '' } grep { $class->can($_) } Frey::Run->runnable |
map { |
234 |
|
qq|<a href="/$class/$_">$_</a>| |
235 |
|
} $self->class_runnable( $class ) |
236 |
); |
); |
237 |
$runnable = " runnable: $runnable" if $runnable; |
$runnable = " runnable: $runnable" if $runnable; |
238 |
|
|