/[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 455 by dpavlin, Wed Nov 19 15:28:23 2008 UTC revision 471 by dpavlin, Thu Nov 20 10:55:56 2008 UTC
# Line 22  has 'class' => ( Line 22  has 'class' => (
22          required => 1,          required => 1,
23  );  );
24    
 has 'path' => (  
         is => 'rw',  
 );  
   
25  =head2 joose  =head2 joose
26    
27    my $js = $o->joose;    my $js = $o->joose;
# Line 98  sub joose { Line 94  sub joose {
94          my $path = "static/blib/$filename";          my $path = "static/blib/$filename";
95          write_file( $path, $out );          write_file( $path, $out );
96          warn "# created $path\n";          warn "# created $path\n";
         $self->path( $path );  
97    
98          return $out;          return $out;
99  }  }
# Line 229  sub as_markup { Line 224  sub as_markup {
224  #       $source =~ s{</body.*$}{}s;  #       $source =~ s{</body.*$}{}s;
225    
226    
         use Frey::Run;  
         my $class_method = $self->class_methods( $class );  
227          my $runnable = join("\n",          my $runnable = join("\n",
228                  map { $class_method->{$_} ? qq|<a href="/$class/$_">$_</a>| : '' } grep { $class->can($_) } Frey::Run->runnable                  map {
229                            qq|<a href="/$class/$_">$_</a>|
230                    } $self->class_runnable( $class )
231          );          );
232          $runnable = " runnable: $runnable" if $runnable;          $runnable = " runnable: $runnable" if $runnable;
233    

Legend:
Removed from v.455  
changed lines
  Added in v.471

  ViewVC Help
Powered by ViewVC 1.1.26