/[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 307 by dpavlin, Wed Nov 5 08:21:03 2008 UTC revision 308 by dpavlin, Wed Nov 5 19:13:01 2008 UTC
# Line 10  use List::Util; Line 10  use List::Util;
10    
11  use lib 'lib';  use lib 'lib';
12    
13  extends 'Frey';  extends 'Frey::ClassLoader';
14  with 'Frey::Web';  with 'Frey::Web';
15    
16  has 'class' => (  has 'class' => (
# Line 32  has 'path' => ( Line 32  has 'path' => (
32  sub joose {  sub joose {
33          my ($self) = @_;          my ($self) = @_;
34    
35          my ( $meta, $is_role ) = $self->load_class;          my ( $meta, $is_role ) = $self->class_meta;
36    
37          if ( ! $is_role ) {          if ( ! $is_role ) {
38                  my @superclasses = map{ $_->meta->name }                  my @superclasses = map{ $_->meta->name }
# Line 109  sub joose { Line 109  sub joose {
109  sub methods {  sub methods {
110          my $self = shift;          my $self = shift;
111    
112          my ( $meta, $is_role ) = $self->load_class;          my ( $meta, $is_role ) = $self->class_meta;
113    
114          my $attr;          my $attr;
115          $attr->{$_}++ foreach $meta->get_attribute_list;          $attr->{$_}++ foreach $meta->get_attribute_list;
# Line 119  sub methods { Line 119  sub methods {
119          return sort @methods;          return sort @methods;
120  }  }
121    
 use Frey::ClassLoader;  
   
 sub load_class {  
         my $self = shift;  
         return Frey::ClassLoader->load_package( $self->class );  
 }  
   
   
122  =head1 OUTPUT GENERATION  =head1 OUTPUT GENERATION
123    
124  =head2 markup  =head2 markup
# Line 140  sub markup { Line 132  sub markup {
132    
133          $self->add_head( 'static/introspect.css' );          $self->add_head( 'static/introspect.css' );
134    
135          my ( $meta, $is_role ) = $self->load_class;          my ( $meta, $is_role ) = $self->class_meta;
136    
137          my $class = $self->class;          my $class = $self->class;
138    

Legend:
Removed from v.307  
changed lines
  Added in v.308

  ViewVC Help
Powered by ViewVC 1.1.26