/[Frey]/trunk/lib/Frey/Introspect.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/Frey/Introspect.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 495 by dpavlin, Thu Nov 20 10:55:56 2008 UTC revision 496 by dpavlin, Mon Nov 24 21:16:27 2008 UTC
# Line 13  use PPI::HTML; Line 13  use PPI::HTML;
13    
14  use lib 'lib';  use lib 'lib';
15    
16  extends 'Frey::ClassLoader';  extends 'Frey::PPI';
17  with 'Frey::Web';  with 'Frey::Web';
18    
19  has 'class' => (  has 'class' => (
# Line 233  sub as_markup { Line 233  sub as_markup {
233    
234          $self->title( $class );          $self->title( $class );
235    
236            my $has_tests = '';
237            if ( my @tests = $self->has_tests ) {
238                    $has_tests =
239                    '<br/>test' . ( $#tests > 0 ? 's' : '' ) . ': ' .      
240                    join("\n", map {
241                            qq|<a target="test" href="/Frey::Test::Runner?tests=$_">$_</a>|
242                    } @tests );
243            }
244    
245          return join("\n",          return join("\n",
246                  qq|<h1>$class</h1>|,                  qq|<h1>$class</h1>|,
247                  qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|,                  qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|,
248                  $pod    ? qq|<a class="frey-skip" href="#___top" title="Skip to POD"    >pod</a>|    : '',                  $pod    ? qq|<a class="frey-skip" href="#___top" title="Skip to POD"    >pod</a>|    : '',
249                  $source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '',                  $source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '',
250                    $has_tests,
251                  qq|$table\n$pod\n</div>\n|,                  qq|$table\n$pod\n</div>\n|,
252                  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>|,
253          );          );

Legend:
Removed from v.495  
changed lines
  Added in v.496

  ViewVC Help
Powered by ViewVC 1.1.26