Created
July 28, 2010 14:22
-
-
Save jjn1056/494665 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
## tried | |
use MooseX::Declare; | |
class LoggedMethodsParameterizableRole | |
with HasLogging(target_method=>'my_method') | |
{ | |
method my_method(Str $name, Int $age) { | |
return "Hi $name, you are $age years old"; | |
} | |
} | |
## also tried | |
use MooseX::Declare; | |
class LoggedMethodsParameterizableRole | |
with HasLogging => {target_method=>'my_method'} | |
{ | |
method my_method(Str $name, Int $age) { | |
return "Hi $name, you are $age years old"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment