From: Dave Rolsky Date: Sun, 11 Jan 2009 23:07:03 +0000 (+0000) Subject: Got to do Moose->init_meta X-Git-Tag: 0.65~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0916778887feedaf9896390e6c10eaccf9f3955a;p=gitmo%2FMoose.git Got to do Moose->init_meta --- diff --git a/lib/Moose/Cookbook/Extending/Recipe2.pod b/lib/Moose/Cookbook/Extending/Recipe2.pod index f46b9aa..961b7e2 100644 --- a/lib/Moose/Cookbook/Extending/Recipe2.pod +++ b/lib/Moose/Cookbook/Extending/Recipe2.pod @@ -12,6 +12,7 @@ Moose::Cookbook::Extending::Recipe2 - Providing a role for the base object class use strict; use warnings; + use Moose (); use Moose::Exporter; use Moose::Util::MetaRole; use MooseX::Debugging::Role::Object; @@ -22,6 +23,8 @@ Moose::Cookbook::Extending::Recipe2 - Providing a role for the base object class shift; my %options = @_; + Moose->init_meta(%options); + Moose::Util::MetaRole::apply_base_class_roles( for_class => $options{for_class}, role => ['MooseX::Debugging::Role::Object'],