Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Moose::Policy::JavaAccUserrContributed Perl DocMoose::Policy::JavaAccessors(3)

NAME
       Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase

SYNOPSIS
	 package Foo;

	 use Moose::Policy 'Moose::Policy::JavaAccessors';
	 use Moose;

	 has 'bar' => (is => 'rw', default => 'Foo::bar');
	 has 'baz' => (is => 'ro', default => 'Foo::baz');

	 # Foo now has (get, set)Bar methods as	well as	getBaz

DEPRECATION NOTICE
       Moose::Policy is	deprecated.

DESCRIPTION
       This meta-policy	changes	the behavior of	Moose's	default	behavior in
       regard to  accessors to follow Java convention and use CamelCase.

CAVEAT
       This does a very	niave conversion to CamelCase, basically it just runs
       "ucfirst" on the	attribute name.	Since I	don't use CamelCase (at	least
       not anymore), this is good enough. If you really	want to	use this, and
       need a more sophisicated	conversion, patches welcome :)

BUGS
       All complex software has	bugs lurking in	it, and	this module is no
       exception. If you find a	bug please either email	me, or add the bug to
       cpan-RT.

AUTHOR
       Stevan Little <stevan@iinteractive.com>

COPYRIGHT AND LICENSE
       Copyright 2006-2007 by Infinity Interactive, Inc.

       <http://www.iinteractive.com>

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.24.1			  2010-11-21   Moose::Policy::JavaAccessors(3)

NAME | SYNOPSIS | DEPRECATION NOTICE | DESCRIPTION | CAVEAT | BUGS | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Moose::Policy::JavaAccessors&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help