Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from ktat/plugin_init_option
add plugin file for test.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|