Changeset 25056

Show
Ignore:
Timestamp:
11/27/08 12:04:03 (4 years ago)
Author:
tokuhirom
Message:

extends ついか

Location:
lang/perl/Shika/trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Shika/trunk/lib/Shika.pm

    r25053 r25056  
    1111 
    1212    no strict 'refs'; 
    13     *{"$pkg\::new"} = \&_new; 
    14     *{"$pkg\::has"} = \&_has; 
     13    *{"$pkg\::new"}     = \&_new; 
     14    *{"$pkg\::has"}     = \&_has; 
     15    *{"$pkg\::extends"} = \&_extends; 
    1516} 
    1617 
     
    3132} 
    3233 
     34sub _extends { 
     35    my $pkg = caller(0); 
     36    my @parents = @_; 
     37    no strict 'refs'; 
     38    unshift @{"$pkg\::ISA"}, @parents; 
     39} 
     40 
    33411; 
    3442__END__ 
     
    3644=head1 NAME 
    3745 
    38 Shika - Yet Anthor Lite Moose 
     46Shika - Lightweight class builder with DSL 
    3947 
    4048=head1 SYNOPSIS