Break it, Class::MOP::Method is losing its overloading somehow. Moving to 5.10 to...
[gitmo/MooseX-Antlers.git] / t / lib / Three.pm
CommitLineData
8cfc65ef 1package Three;
2
3use Moose;
4
5my $called_foo = 0;
6
7sub get_called_foo { $called_foo }
8
9has foo => (is => 'rw', required => 1 );
10
11sub BUILD {
12 my $self = shift;
13 $self->foo(42);
14}
15
16#before foo => sub {
17# my ($self, $val) = @_;
18# $called_foo++ if $val;
19#};
20
21__PACKAGE__->meta->make_immutable;
22
231;