[Melbourne-pm] Moose - complex validation
Scott Penrose
scottp at dd.com.au
Wed Jan 20 03:03:45 PST 2010
On 20/01/2010, at 6:09 PM, Ryan, Martin G wrote:
> == snip ==
> The "BUILD" method is called after an object is created.
> There are several ways to use a "BUILD" method. One of the
> most common is to check that the object state is valid.
> While we can validate individual attributes through the use
> of types, we can't validate the state of a whole object that
> way.
> == snip ==
You're the man. I was looking for something like that. So I guessed right, but now I know :-)
Ta
Scooter
More information about the Melbourne-pm
mailing list