/[Frey]/branches/no-pager/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 /branches/no-pager/lib/Frey/Introspect.pm

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

revision 380 by dpavlin, Mon Nov 17 18:42:51 2008 UTC revision 393 by dpavlin, Tue Nov 18 00:55:56 2008 UTC
# Line 188  sub markup { Line 188  sub markup {
188          @attributes = map {          @attributes = map {
189                          my $name = $_;                          my $name = $_;
190                          my $attr = $meta->get_attribute($name);                          my $attr = $meta->get_attribute($name);
191                          warn "## ref attr: ",ref( $attr );                          warn "## attr $name ref ",ref( $attr ) if $self->debug;
192                          my ( $before, $title, $after ) = ( '', '', '' );                          my ( $before, $title, $after ) = ( '', '', '' );
193                          ( $before, $title, $after ) = ( '<b>', ' title="required"', '</b>' ) if $attr->is_required;                          ( $before, $title, $after ) = ( '<b>', ' title="required"', '</b>' ) if $attr->is_required;
 warn $attr->dump(3);  
194                          foreach my $check ( qw/has_type_constraint has_handles is_weak_ref is_required is_lazy should_coerce should_auto_deref has_default has_trigger has_documentation has_applied_traits/ ) {                          foreach my $check ( qw/has_type_constraint has_handles is_weak_ref is_required is_lazy should_coerce should_auto_deref has_default has_trigger has_documentation has_applied_traits/ ) {
195                                  my $getter;                                  my $getter;
196                                                                    
# Line 257  warn $attr->dump(3); Line 256  warn $attr->dump(3);
256    
257          my $html = {          my $html = {
258                  title => $class,                  title => $class,
259                  body => join("\n"                  body => join("\n",
260                          , qq|<h1>$class</h1>|,                          qq|<h1>$class</h1>|,
261                          , qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|,                          qq|<div class="frey-introspect">$superclasses\n$roles\n$runnable\n|,
262                          , ( $pod ? qq|<a href="#___top" title="Skip to POD" class="frey-skip">pod</a>| : '' )                          $pod    ? qq|<a class="frey-skip" href="#___top" title="Skip to POD"    >pod</a>|    : '',
263                          , qq|<a href="#source" title="Skip to source" class="frey-skip">source</a>|                          $source ? qq|<a class="frey-skip" href="#source" title="Skip to source" >source</a>| : '',
264                          , qq|$table\n$pod\n</div>\n|                          qq|$table\n$pod\n</div>\n|,
265                          , 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>|,
266                  ),                  ),
267          };          };
268    

Legend:
Removed from v.380  
changed lines
  Added in v.393

  ViewVC Help
Powered by ViewVC 1.1.26