Re: How to make this nicer
Chris Prather wrote: On Thu, Jun 4, 2009 at 10:34 PM, Yuri Shtil wrote: How do I access the container object (where the with is) from the role method? $self ? -Chris The first thing on the arg list to self is the parameter, no self here. The named parameter consumer points to Moose::Meta::Class. How do I extract the real class from it? -- Yuri
Re: How to make this nicer
On Thu, Jun 4, 2009 at 10:34 PM, Yuri Shtil wrote: > How do I access the container object (where the with is) from the role > method? $self ? -Chris
Re: How to make this nicer
Hans Dieter Pearcey wrote: On Sun, May 03, 2009 at 11:00:30AM -0700, Yuri Shtil wrote: I have a bunch of subclasses of X like this all having similar code. For example in the class X::Procedure I would have the same code with procedure replaced by step. use MooseX::Role::Parameterized hdp. This works perfectly, thank you. I have one more question. How do I access the container object (where the with is) from the role method? -- Yuri
Re: How to make this nicer
On Sun, May 03, 2009 at 11:00:30AM -0700, Yuri Shtil wrote: > I have a bunch of subclasses of X like this all having similar code. > For example in the class X::Procedure I would have the same code with > procedure replaced by step. use MooseX::Role::Parameterized hdp.