| 1 | package AutoCode::Unimplemented; | ||
| 2 | use strict; | ||
| 3 | use AutoCode::Root; | ||
| 4 | our @ISA=qw(AutoCode::Root); | ||
| 5 | |||
| 6 | sub import { | ||
| 7 | my ($caller, $methods, $pkg)=@_; | ||
| 8 | my $class = ref($caller)||$caller; | ||
| 9 | $pkg||=caller; | ||
| 10 | no strict 'refs'; | ||
| 11 | foreach(@$methods){ | ||
| 12 | *{"$pkg\::$_"}= sub {shift->not_implemented;}; | ||
| 13 | } | ||
| 14 | } | ||
| 15 | |||
| 16 | 1; | ||
| 17 | __END__ |