/[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 211 by dpavlin, Fri Oct 31 17:27:39 2008 UTC revision 212 by dpavlin, Fri Oct 31 17:58:45 2008 UTC
# Line 147  sub html { Line 147  sub html {
147                  my $package = $self->package;                  my $package = $self->package;
148    
149                  my @methods;                  my @methods;
150                  @methods = map { qq|<td><a href="/~/$package/$_">$_</a></td>| } $self->methods;                  @methods = map { qq|<td class="m"><tt>$_</tt></td>| } $self->methods;
151    
152                  my @attributes;                  my @attributes;
153                  if ( $meta->get_attribute_list ) {                  if ( $meta->get_attribute_list ) {
# Line 173  warn $attr->dump(3); Line 173  warn $attr->dump(3);
173                                          }                                          }
174                                          $after .= ' ';                                          $after .= ' ';
175                                  }                                  }
176                                  qq|<td align="right">$before<a href="/~/$package/?$_">$_</a></td><td>$after</td>|                                  qq|<td class="a">$before<tt>$_</tt></td><td>$after</td>|
177                          } sort $meta->get_attribute_list                          } sort $meta->get_attribute_list
178                  }                  }
179    
180                  my $table = qq|<table class="frey-object-browser"><tr><th>Methods</th><th align="right">Attributes</th><th align="left">Properties</th></tr>|;                  my $table = qq|<table class="frey-object-browser"><tr><th class="m">Methods</th><th class="a">Attributes</th><th class="p">Properties</th></tr>|;
181                  while ( @methods || @attributes ) {                  while ( @methods || @attributes ) {
182                          my ($m,$a) = ( shift @methods, shift @attributes );                          my ($m,$a) = ( shift @methods, shift @attributes );
183                          $m ||= '<td></td>';                          $m ||= '<td></td>';
# Line 206  warn $attr->dump(3); Line 206  warn $attr->dump(3);
206                                  grep { ! m/\Q$package\E/ }      # skip me                                  grep { ! m/\Q$package\E/ }      # skip me
207                                  map {                                  map {
208                                          my $name = $_->name;                                          my $name = $_->name;
209                                          qq|<a class="frey-popup" href="/~/$name">$name<span>| . $name->meta->dump(2) . qq|</span></a>|;                                          qq|<a class="frey-popdown" href="/~/$name">$name<code>| . $name->meta->dump(2) . qq|</code></a>|;
210                                  }                                  }
211                                  $meta->calculate_all_roles                                  $meta->calculate_all_roles
212                          );                          );

Legend:
Removed from v.211  
changed lines
  Added in v.212

  ViewVC Help
Powered by ViewVC 1.1.26