Browse files

Add call to `build()` to the synopsis.

  • Loading branch information...
1 parent e95fded commit 0a512e269d063eed09912f02235adf184f93eb1e @theory committed Oct 31, 2011
Showing with 5 additions and 1 deletion.
  1. +2 −0 Changes
  2. +3 −1 lib/Class/Meta.pm
View
2 Changes
@@ -2,6 +2,8 @@ Revision history for Perl extension Class::Meta.
0.66
- Fixed broken rt.cpan.org email address.
+ - Added missing call to `build()` in the synopsis. Thanks to Laurnet
+ Dami for the report (RT #72058).
0.65 2011-06-21T18:33:57
- Require Test::Pod 1.41 to run the Pod tests.
View
4 lib/Class/Meta.pm
@@ -44,12 +44,14 @@ Generate a class:
default => undef,
);
- # Add a custom method.
+ # Add a custom method.
$cm->add_method(
name => 'chk_pass',
view => 'PUBLIC',
code => sub { ... },
);
+
+ $cm->build;
}
sub chck_pass { ... }

0 comments on commit 0a512e2

Please sign in to comment.