--- trunk/lib/Frey/Introspect.pm 2008/11/05 08:20:59 288 +++ trunk/lib/Frey/Introspect.pm 2008/11/05 08:21:03 292 @@ -77,7 +77,7 @@ $out .= "\t\t},\n\t\tmeta: Frey.HTML, classMethods: { renderHTML: function () { - return new Joose.SimpleRequest().getText(\"/Frey-Introspect?class=" . $self->class . "\") + return new Joose.SimpleRequest().getText(\"/" . $self->class . "\") },\n"; $out .= "\t\t},\n"; @@ -172,11 +172,12 @@ } $after .= ' '; } - qq|$before $_$after| + my $type = $attr->has_type_constraint ? $attr->type_constraint->name : ''; + qq|$before $_$type$after| } sort $meta->get_attribute_list } - my $table = qq||; + my $table = qq|
MethodsAttributesProperties
|; while ( @methods || @attributes ) { my ($m,$a) = ( shift @methods, shift @attributes ); $m ||= ''; @@ -192,7 +193,7 @@ join(', ', map { my $name = $_->meta->name; - qq|$name| . $_->meta->dump(2) . qq||; + qq|$name| . $_->meta->dump(2) . qq||; } #grep { $_ ne 'Moose::Object' } $meta->superclasses @@ -205,7 +206,7 @@ grep { ! m/\Q$class\E/ } # skip me map { my $name = $_->name; - qq|$name| . $name->meta->dump(2) . qq||; + qq|$name| . $name->meta->dump(2) . qq||; } $meta->calculate_all_roles );
MethodsAttributesTypeProperties