moose
What's the best way to assign a method body at construction time when using Moose?
I\'m using Moose (specifically MooseX::Declare) to create an iterator object, Iter which has a next method that advances state and returns 0 or 1 as required for use in a while statement. The problem[详细]
2023-01-30 18:52 分类:问答How do I define default attribute property values in Moose?
As the title suggests, I\'d like to be able to do something like this in my class: use MooseX::Declare;[详细]
2023-01-30 13:22 分类:问答Is MooseX::Method::Signatures still suggested, or is there a better alternative?
My team recently decided to move away from MooseX::Declare.Is using MooseX::Method::Signatures on its开发者_Go百科 own the best alternative?Courtesy of Jon Rockway, who is too lazy to change his proxy[详细]
2023-01-29 12:48 分类:问答Succinct MooseX::Declare method signature validation errors
I\'ve been a proponent of adopting Moose (and MooseX::Declare) at work for several months.The style it encourages will really help the maintainability of our codebase, but not without some initial cos[详细]
2023-01-28 20:09 分类:问答Modify Moose attribute methods
I\'m creating a list of attributes (more than the three shown below), all of which share common methods.Is it possible to then add a trigger to one of the methods:[详细]
2023-01-28 09:08 分类:问答Moose structured types
I\'d like to create a structured type in Moose that can be used as the type for another Moose attribute.For example, I\'d like to be able to create a name attribute which has its own value and error a[详细]
2023-01-28 07:57 分类:问答How can I make all lazy Moose features be built?
I have a bunch of lazy features in a Moose object. Some of the builders require some time to finish. I would like to nvoke all the builders (the dump the \"bomplete\" o开发者_如何学JAVAbject).[详细]
2023-01-26 02:59 分类:问答How can I set up a bunch of attribute builders in a Moose object?
I have the following five Moose attributes: has [\'summary_file\', \'html_file\', \'url1\', \'url2\', \'txt_file\'] => ([详细]
2023-01-25 15:15 分类:问答Can I set the 'isa' of a Moose object attribute upon construction?
I have a Moose object with the following attribute: has \'people\' => ( is=> \'ro\', isa=> \'ArrayRef[Person::Child]\',[详细]
2023-01-24 14:05 分类:问答Moose::Role - easy way to augment application of the role?
I have a Moose::Role that I would like to call some extra subs on the class when that role is applied to the class.[详细]
2023-01-23 09:22 分类:问答