Skip to content

Commit

Permalink
make plugin base class slightly more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 4, 2012
1 parent c273e15 commit 5b4f1d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Mojolicious/Plugin.pm
@@ -1,9 +1,11 @@
package Mojolicious::Plugin;
use Mojo::Base -base;

use Carp 'croak';

# "This is Fry's decision.
# And he made it wrong, so it's time for us to interfere in his life."
sub register { }
sub register { croak 'Method "register" not implemented by subclass' }

1;

Expand Down

0 comments on commit 5b4f1d0

Please sign in to comment.