--- trunk/lib/Frey/ClassBrowser.pm 2008/11/19 01:21:31 434 +++ trunk/lib/Frey/ClassBrowser.pm 2008/11/19 16:53:13 457 @@ -15,7 +15,7 @@ documentation => 'Show usage on top of list', ); -sub markup { +sub as_markup { my $self = shift; my $row; @@ -37,15 +37,13 @@ my @run; my @input; push @run, qq|collection| if $class->can('collection_table'); - my $class_method = $self->class_methods( $class ); - foreach my $try ( Frey::Run->runnable ) { - next unless $class->can($try); - if ( $class_method->{ $try } ) { - push @run, qq|$try|; - } else { - push @input, $try; - } - } + my @class_methods = $self->class_methods( $class ); + + push @run, qq|$_| + foreach ( map { s{^as_}{} } $self->class_runnable( $class ) ); + push @input, $_ + foreach $self->class_inputs( $class ); + $usage->{$class} ||= 0; $html .= qq||