| 1 | package Test::Item; |
|---|
| 2 | |
|---|
| 3 | =pod |
|---|
| 4 | |
|---|
| 5 | =head1 NAME |
|---|
| 6 | |
|---|
| 7 | Framily::Menu::Item - My author was too lazy to write an abstract |
|---|
| 8 | |
|---|
| 9 | =head1 SYNOPSIS |
|---|
| 10 | |
|---|
| 11 | my $object = Framily::Menu::Item->new( |
|---|
| 12 | foo => 'bar', |
|---|
| 13 | flag => 1, |
|---|
| 14 | ); |
|---|
| 15 | |
|---|
| 16 | $object->dummy; |
|---|
| 17 | |
|---|
| 18 | =head1 DESCRIPTION |
|---|
| 19 | |
|---|
| 20 | The author was too lazy to write a description. |
|---|
| 21 | |
|---|
| 22 | =head1 METHODS |
|---|
| 23 | |
|---|
| 24 | =cut |
|---|
| 25 | |
|---|
| 26 | use 5.010; |
|---|
| 27 | use strict; |
|---|
| 28 | use Moose; |
|---|
| 29 | |
|---|
| 30 | our $VERSION = '0.01'; |
|---|
| 31 | |
|---|
| 32 | =pod |
|---|
| 33 | |
|---|
| 34 | =head2 new |
|---|
| 35 | |
|---|
| 36 | my $object = Framily::Menu::Item->new( |
|---|
| 37 | foo => 'bar', |
|---|
| 38 | ); |
|---|
| 39 | |
|---|
| 40 | The C<new> constructor lets you create a new B<Framily::Menu::Item> object. |
|---|
| 41 | |
|---|
| 42 | So no big surprises there... |
|---|
| 43 | |
|---|
| 44 | Returns a new B<Framily::Menu::Item> or dies on error. |
|---|
| 45 | |
|---|
| 46 | =cut |
|---|
| 47 | |
|---|
| 48 | sub new { |
|---|
| 49 | my $class = shift; |
|---|
| 50 | my $self = bless { @_ }, $class; |
|---|
| 51 | return $self; |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | =pod |
|---|
| 55 | |
|---|
| 56 | =head2 dummy |
|---|
| 57 | |
|---|
| 58 | This method does something... apparently. |
|---|
| 59 | |
|---|
| 60 | =cut |
|---|
| 61 | |
|---|
| 62 | sub dummy { |
|---|
| 63 | my $self = shift; |
|---|
| 64 | |
|---|
| 65 | # Do something here |
|---|
| 66 | |
|---|
| 67 | return 1; |
|---|
| 68 | } |
|---|
| 69 | |
|---|
| 70 | 1; |
|---|
| 71 | |
|---|
| 72 | =pod |
|---|
| 73 | |
|---|
| 74 | =head1 SUPPORT |
|---|
| 75 | |
|---|
| 76 | No support is available |
|---|
| 77 | |
|---|
| 78 | =head1 AUTHOR |
|---|
| 79 | |
|---|
| 80 | Copyright 2012 Anonymous. |
|---|
| 81 | |
|---|
| 82 | =cut |
|---|