Changeset 25056
- Timestamp:
- 11/27/08 12:04:03 (4 years ago)
- Location:
- lang/perl/Shika/trunk
- Files:
-
- 1 added
- 1 modified
-
lib/Shika.pm (modified) (3 diffs)
-
t/010_core/03_extends.t (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Shika/trunk/lib/Shika.pm
r25053 r25056 11 11 12 12 no strict 'refs'; 13 *{"$pkg\::new"} = \&_new; 14 *{"$pkg\::has"} = \&_has; 13 *{"$pkg\::new"} = \&_new; 14 *{"$pkg\::has"} = \&_has; 15 *{"$pkg\::extends"} = \&_extends; 15 16 } 16 17 … … 31 32 } 32 33 34 sub _extends { 35 my $pkg = caller(0); 36 my @parents = @_; 37 no strict 'refs'; 38 unshift @{"$pkg\::ISA"}, @parents; 39 } 40 33 41 1; 34 42 __END__ … … 36 44 =head1 NAME 37 45 38 Shika - Yet Anthor Lite Moose46 Shika - Lightweight class builder with DSL 39 47 40 48 =head1 SYNOPSIS
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)