Moose::Policy::JavaAccessors

Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase.
Download

Moose::Policy::JavaAccessors Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Stevan Little
  • Publisher web site:
  • http://search.cpan.org/~stevan/

Moose::Policy::JavaAccessors Tags


Moose::Policy::JavaAccessors Description

Moose::Policy::JavaAccessors - BeCause EveryOne Loves CamelCase. 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 getBazThis meta-policy changes the behavior of Moose's default behavior in regard to accessors to follow Java convention and use CamelCase.CAVEATThis 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. Requirements: · Perl


Moose::Policy::JavaAccessors Related Software