projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
13dbfe4
)
Turn on coercion for birth_date
Dave Rolsky [Thu, 4 Sep 2008 21:13:23 +0000 (21:13 +0000)]
lib/Moose/Unsweetened.pod
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Unsweetened.pod
b/lib/Moose/Unsweetened.pod
index
4799be4
..
e72b08a
100644
(file)
--- a/
lib/Moose/Unsweetened.pod
+++ b/
lib/Moose/Unsweetened.pod
@@
-41,8
+41,9
@@
First, we define two very small classes the Moose way.
=> via { $en_parser->parse_datetime($_) };
has birth_date => (
- is => 'rw',
- isa => 'DateTime',
+ is => 'rw',
+ isa => 'DateTime',
+ coerce => 1,
);
subtype 'ShirtSize'