Bug 137769 - New port: devel/p5-MooseX-SemiAffordanceAccessor - name your accessors foo() and set_foo()
Summary: New port: devel/p5-MooseX-SemiAffordanceAccessor - name your accessors foo() ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-14 16:00 UTC by Alexey Degtyarev
Modified: 2009-08-14 21:10 UTC (History)
0 users

See Also:


Attachments
p5-MooseX-SemiAffordanceAccessor.shar (3.23 KB, text/plain)
2009-08-14 16:00 UTC, Alexey Degtyarev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Degtyarev 2009-08-14 16:00:15 UTC
This module does not provide any methods. Simply loading it changes the default
naming policy for the loading class so that accessors are separated into get
and set methods. The get methods have the same name as the accessor, while set
methods are prefixed with "set_".

If you define an attribute with a leading underscore, then the set method will
start with "_set_".

If you explicitly set a "reader" or "writer" name when creating an attribute,
then that attribute's naming scheme is left unchanged.

The name "semi-affordance" comes from David Wheeler's Class::Meta module.

WWW: http://search.cpan.org/~drolsky/MooseX-SemiAffordanceAccessor/
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2009-08-14 18:19:58 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-08-14 21:08:04 UTC
State Changed
From-To: open->closed

New port added, with minor changes. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-08-14 21:08:25 UTC
miwi        2009-08-14 20:08:17 UTC

  FreeBSD ports repository

  Modified files:
    devel                Makefile 
  Added files:
    devel/p5-MooseX-SemiAffordanceAccessor Makefile distinfo 
                                           pkg-descr pkg-plist 
  Log:
  This module does not provide any methods. Simply loading it changes the default
  naming policy for the loading class so that accessors are separated into get
  and set methods. The get methods have the same name as the accessor, while set
  methods are prefixed with "set_".
  
  WWW: http://search.cpan.org/dist/MooseX-SemiAffordanceAccessor/
  
  PR:             ports/137769
  Submitted by:   Alexey V. Degtyarev
  
  Revision  Changes    Path
  1.3598    +1 -0      ports/devel/Makefile
  1.1       +26 -0     ports/devel/p5-MooseX-SemiAffordanceAccessor/Makefile (new)
  1.1       +3 -0      ports/devel/p5-MooseX-SemiAffordanceAccessor/distinfo (new)
  1.1       +6 -0      ports/devel/p5-MooseX-SemiAffordanceAccessor/pkg-descr (new)
  1.1       +8 -0      ports/devel/p5-MooseX-SemiAffordanceAccessor/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"