/[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 418 by dpavlin, Tue Nov 18 16:54:10 2008 UTC revision 457 by dpavlin, Wed Nov 19 16:53:13 2008 UTC
# Line 103  sub joose { Line 103  sub joose {
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' );
# Line 211  sub markup { Line 203  sub markup {
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 );
# Line 237  sub markup { Line 229  sub markup {
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 { qq|<a href="/$class/$_">$_</a>| : '' } $self->class_runnable( $class );
234          );          );
235          $runnable = " runnable: $runnable" if $runnable;          $runnable = " runnable: $runnable" if $runnable;
236    

Legend:
Removed from v.418  
changed lines
  Added in v.457

  ViewVC Help
Powered by ViewVC 1.1.26