Commits

Toby Inkster committed 09c7118

make bitflags into an attribute

Comments (0)

Files changed (1)

lib/Smart/Dispatch/Match.pm

 	required  => 0,
 );
 
+has bitflags => (
+	(_TYPES?(isa=>Num()):()),
+	is        => 'lazy',
+	init_arg  => undef,
+);
+
 has is_failover => (
 	(_TYPES?(isa=>Bool()):()),
 	is        => 'ro',
 	default   => sub { 0 },
 );
 
-sub bitflags
+sub _build_bitflags
 {
 	my ($self) = @_;
 	my $rv = 1;
 
 =item * B<< code derefernce >> C<< &{} >> - C<conduct_dispatch>.
 
-=item * B<< numeric context >> C<< +0 >> - C<bitflags>.
-
 =item * B<< smart match >> C<< ~~ >> - C<value_matches>.
 
 =back