Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

role::hasmessage::errf(3pm) [debian man page]

Role::HasMessage::Errf(3pm)				User Contributed Perl Documentation			       Role::HasMessage::Errf(3pm)

NAME
Role::HasMessage::Errf - a thing with a String::Errf-powered message VERSION
version 0.005 SYNOPSIS
In your class... package Errfy; use Moose; with 'Role::HasMessage::Errf'; has payload => ( is => 'ro', isa => 'HashRef', required => 1, ); Then... my $thing = Errfy->new({ message => "%{error_count;error}n encountered at %{when}t", payload => { error_count => 2, when => time, }, }); # prints: 2 errors encountered at 2010-10-20 19:23:42 print $thing->message; DESCRIPTION
Role::HasMessage::Errf is an implementation of Role::HasMessage that uses String::Errf to format "sprintf"-like message strings. It adds a "message_fmt" attribute, initialized by the "message" argument. The value should be a String::Errf format string. When the provided "message" method is called, it will fill in the format string with the hashref returned by calling the "payload" method, which must be implemented by the including class. Role::HasMessage::Errf is a parameterized role. The "default" parameter lets you set a default format string or callback. The "lazy" parameter sets whether or not the "message_fmt" attribute is lazy. Setting it lazy will require that a default is provided. AUTHOR
Ricardo Signes <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.10.1 2010-10-28 Role::HasMessage::Errf(3pm)

Check Out this Related Man Page

Moose::Meta::Role::Method::Conflicting(3pm)		User Contributed Perl Documentation	       Moose::Meta::Role::Method::Conflicting(3pm)

NAME
Moose::Meta::Role::Method::Conflicting - A Moose metaclass for conflicting methods in Roles VERSION
version 2.0603 DESCRIPTION
INHERITANCE
"Moose::Meta::Role::Method::Conflicting" is a subclass of Moose::Meta::Role::Method::Required. METHODS
Moose::Meta::Role::Method::Conflicting->new(%options) This creates a new type constraint based on the provided %options: o name The method name. This is required. o roles The list of role names that generated the conflict. This is required. $method->name Returns the conflicting method's name, as provided to the constructor. $method->roles Returns the roles that generated this conflicting method, as provided to the constructor. $method->roles_as_english_list Returns the roles that generated this conflicting method as an English list. BUGS
See "BUGS" in Moose for details on reporting bugs. AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for details. COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc.. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-28 Moose::Meta::Role::Method::Conflicting(3pm)
Man Page