MouseX::SingletonMethod::Role - Role providing Singleton Method option
See MouseX::SingletonMethod
Make the object a singleton
Adds a singleton method to this object:
$foo->add_singleton_method( foo => sub { 'foo' } );
Same as above except allows multiple method declaration:
$bar->add_singleton_methods( bar1 => sub { 'bar1' }, bar2 => sub { 'bar2' }, );
Hideaki Ohno <hide.o.j55 {at} gmail.com>
To install MouseX::SingletonMethod, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MouseX::SingletonMethod
CPAN shell
perl -MCPAN -e shell install MouseX::SingletonMethod
For more information on module installation, please visit the detailed CPAN module installation guide.