Lots of code cleanup in M::AH traits.
authorDave Rolsky <autarch@urth.org>
Fri, 26 Jun 2009 21:50:49 +0000 (16:50 -0500)
committerDave Rolsky <autarch@urth.org>
Fri, 26 Jun 2009 21:50:49 +0000 (16:50 -0500)
commit2edb73d94e20c23a982e2172bfb9aa1548eb8ad3
treeb760c64bd54828665ed6c937f397a64c60509061
parent115601b633616f33337b6188362da87b4bf06090
Lots of code cleanup in M::AH traits.

Removed lots of custom before modifiers in favor of allowing traits to
define a _default_default and _default_is.

Made more methods private.

Killed the ridiculous "default => sub { 5 }" idiom in the SYNOPSIS
sections.
lib/Moose/AttributeHelpers/Trait/Base.pm
lib/Moose/AttributeHelpers/Trait/Bool.pm
lib/Moose/AttributeHelpers/Trait/Collection/Bag.pm
lib/Moose/AttributeHelpers/Trait/Counter.pm
lib/Moose/AttributeHelpers/Trait/Number.pm
lib/Moose/AttributeHelpers/Trait/String.pm