Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #65 from ktat/plugin_init_option
Browse files Browse the repository at this point in the history
add plugin file for test.
  • Loading branch information
nekokak committed Apr 4, 2012
2 parents 00a9e21 + 429cfdc commit 13fbed9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions t/lib/Teng/Plugin/ArgsTest.pm
@@ -0,0 +1,27 @@
package
Teng::Plugin::ArgsTest;

use strict;
use warnings;

our @EXPORT = qw/args_class args_opt/;
my %args;

sub init {
my ($pkg, $class, $opt) = @_;
$args{class} = $class;
$args{opt} = $opt;
}

sub args_class {
my ($self) = @_;
return $args{class};
}

sub args_opt {
my ($self) = @_;
return $args{opt};
}

1;

0 comments on commit 13fbed9

Please sign in to comment.