From: gfx Date: Sun, 25 Oct 2009 06:39:31 +0000 (+0900) Subject: Add "documentation" attribute to Mouse::PurePerl X-Git-Tag: 0.40_01~20 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d899d3e735654ec8a2563b55cba4019d9d387679;p=gitmo%2FMouse.git Add "documentation" attribute to Mouse::PurePerl --- diff --git a/lib/Mouse/PurePerl.pm b/lib/Mouse/PurePerl.pm index b601b29..2faf498 100644 --- a/lib/Mouse/PurePerl.pm +++ b/lib/Mouse/PurePerl.pm @@ -168,6 +168,8 @@ sub builder { $_[0]->{builder} } sub should_auto_deref { $_[0]->{auto_deref} } sub should_coerce { $_[0]->{coerce} } +sub documentation { $_[0]->{documentation} } + # predicates sub has_accessor { exists $_[0]->{accessor} } @@ -182,6 +184,8 @@ sub has_type_constraint { exists $_[0]->{type_constraint} } sub has_trigger { exists $_[0]->{trigger} } sub has_builder { exists $_[0]->{builder} } +sub has_documentation { exists $_[0]->{documentation} } + package Mouse::Meta::TypeConstraint;