# input file for testing filter_example.pl
use Method::Signatures::Simple;
- method foo { $self->bar }
+ method foo1 { $self->bar }
# with signature
- method foo($bar, %opts) { $self->bar(reverse $bar) if $opts{rev};
+ method foo2($bar, %opts) { $self->bar(reverse $bar) if $opts{rev};
}
# attributes
- method foo : lvalue { $self->{foo}
+ method foo3 : lvalue { $self->{foo}
}
# change invocant name
method
-foo ($class: $bar) { $class->bar($bar) }
+foo4 ($class: $bar) { $class->bar($bar) }