1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package Bot::Games::Trait::Method::Formatted; use Moose::Role; has formatter => ( is => 'rw', isa => 'CodeRef', default => sub { sub { warn "no formatter specified!"; return @_; } }, ); no Moose::Role; 1;