# NAME MooseX::AttributeFilter - MooX::AttributeFilter with cute antlers OwO # SYNOPSIS package My::Class; use Moose; use MooseX::AttributeFilter; has field => ( is => 'rw', filter => 'filterField', ); sub filterField { my $this = shift; return "filtered($_[0])"; } package main; my $obj = My::Class->new( field => "initial" ); $obj->field eq "filtered(initial)"; # True! # DESCRIPTION MooseX::AttributeFilter is a port of [MooX::AttributeFilter](https://metacpan.org/pod/MooX::AttributeFilter) to [Moose](https://metacpan.org/pod/Moose). Filter is like a `coerce` sub but is called as a method so can see object instance. Filter is like a `trigger` but is called before attribute value is set. # BUGS Some parts don't work correctly in mutable classes. Mutable classes are slow anyway. [https://rt.cpan.org/Dist/Display.html?Queue=MooseX-AttributeFilter](https://rt.cpan.org/Dist/Display.html?Queue=MooseX-AttributeFilter) # CUTE