in reply to Using ArrayRef data members in Moose
I want to reopen this thread about Moose::AttributeHelpers::Collection::Array because I just don't get it!
Will someone who speaks in plain language please explain to me exactly what this does? Exactly what it is saying to Perl or to Moose?
provides => { 'push' => 'add_things' },
When I look at this code (and elsewhere...) I do not see the word “push!” I see people using a method, “add_things,” plenty of times, but that looks like an ordinary method-call ... but what sort of stale-tasting “sugar” is this?
My hand is once-again poised in front of my forehead, ready to slap... (Whack! “Doh!!”) :-)
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using ArrayRef data members in Moose
by Fletch (Bishop) on Jan 23, 2009 at 17:51 UTC | |
|
Re^2: Using ArrayRef data members in Moose
by locked_user sundialsvc4 (Abbot) on Jan 23, 2009 at 17:57 UTC | |
by Anonymous Monk on Feb 18, 2011 at 17:49 UTC | |
by Anonymous Monk on Feb 18, 2011 at 17:49 UTC | |
by stvn (Monsignor) on Feb 19, 2011 at 21:23 UTC |