handles => {
add_item => 'push',
next_item => 'shift',
- }
+ },
)
By providing the C<Array> trait to the C<traits> parameter you signal to
isa => 'HTTP::Request',
handles => {
set_user_agent => [ header => 'UserAgent' ],
- }
+ },
)
With this definition calling C<< $spider->set_user_agent('MyClient') >> will
is => 'ro',
isa => 'ArrayRef[Str]',
default => sub { [] },
- handles => {
- all_options => 'elements',
- map_options => 'map',
- filter_options => 'grep',
- find_option => 'first',
- get_option => 'get',
- join_options => 'join',
- count_options => 'count',
- has_no_options => 'is_empty',
- sorted_options => 'sort',
- }
+ handles => {
+ all_options => 'elements',
+ map_options => 'map',
+ filter_options => 'grep',
+ find_option => 'first',
+ get_option => 'get',
+ join_options => 'join',
+ count_options => 'count',
+ has_no_options => 'is_empty',
+ sorted_options => 'sort',
+ },
);
no Moose;