--- trunk/lib/Frey/ClassBrowser.pm 2008/11/18 12:02:57 407 +++ trunk/lib/Frey/ClassBrowser.pm 2008/11/18 12:55:32 408 @@ -20,12 +20,21 @@ $html .= qq|design| if $class->can('collection'); } } - my @inspect; - push @inspect, qq|collection| if $class->can('collection_table'); + my @run; + my @input; + push @run, qq|collection| if $class->can('collection_table'); + my @methods = $self->class_methods( $class ); foreach my $try ( Frey::Run->runnable ) { - push @inspect, qq|$try| if $class->can($try); + next unless $class->can($try); + if ( grep { /^\Q$try\E$/ } @methods ) { + push @run, qq|$try|; + } else { + push @input, $try; + } } - $html .= qq|| . join(' ', @inspect) . qq||; + $html .= qq|| . join(' ', @run) . qq|| . + ( @input ? '← ' . join(' ', @input) : '' ) . + qq||; } $html = "$html
" if $html; $markup = $html;