NAME
MouseX::SingletonMethod::Role - Role providing Singleton Method option
DESCRIPTION
METHODS
become_singleton
Make the object a singleton
add_singleton_method
Adds a singleton method to this object:
$foo->add_singleton_method( foo => sub { 'foo' } );
add_singleton_methods
Same as above except allows multiple method declaration:
$bar->add_singleton_methods(
bar1 => sub { 'bar1' },
bar2 => sub { 'bar2' },
);
AUTHOR
Hideaki Ohno <hide.o.j55 {at} gmail.com>