21 Nov 2010 16:38:44 UTC
- Distribution: Moose-Policy
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (4)
- Testers (938 / 5 / 0)
- KwaliteeBus factor: 3
- 50.00% Coverage
- License: perl_5
- Activity24 month
- Download (8.58KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionDROLSKY Dave Rolskyand 1 contributors
- Stevan Little E<lt>firstname.lastname@example.orgE<gt>
Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase
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
Moose::Policy is deprecated.
This meta-policy changes the behavior of Moose's default behavior in regard to accessors to follow Java convention and use CamelCase.
This does a very niave conversion to CamelCase, basically it just runs
ucfirston 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 :)
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.
Stevan Little <email@example.com>
Copyright 2006-2007 by Infinity Interactive, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Moose::Policy, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Moose::Policy
For more information on module installation, please visit the detailed CPAN module installation guide.