From: Jay Hannah Date: Tue, 23 Mar 2010 02:57:24 +0000 (-0500) Subject: add_attribute() POD correction from flatwhatson . X-Git-Tag: 1.00~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1b9130e0b224fb6c16fc1e06c5bcd8b0749a1928;p=gitmo%2FMoose.git add_attribute() POD correction from flatwhatson . --- diff --git a/lib/Moose/Manual/MOP.pod b/lib/Moose/Manual/MOP.pod index 03f002b..df21c60 100644 --- a/lib/Moose/Manual/MOP.pod +++ b/lib/Moose/Manual/MOP.pod @@ -112,11 +112,7 @@ As an example, we can add a method to a class: Or an attribute: - $meta->add_attribute( - name => 'size', - is => 'rw', - isa => 'Int', - ); + $meta->add_attribute( 'size' => { is => 'rw', isa => 'Int' } ); Obviously, this is much more cumbersome than using Perl syntax or Moose sugar for defining methods and attributes, but this API allows