Commit | Line | Data |
5f654d8e |
1 | package Moose::Autobox::Defined; |
2 | use Moose::Role 'with'; |
3 | |
4 | our $VERSION = '0.01'; |
5 | |
6 | with 'Moose::Autobox::Item'; |
7 | |
8 | sub defined { 1 } |
9 | |
31d40d73 |
10 | 1; |
11 | |
12 | __END__ |
13 | |
14 | =pod |
15 | |
16 | =head1 NAME |
17 | |
18 | Moose::Autobox::Defined - the Defined role |
19 | |
20 | =head1 SYNOPOSIS |
21 | |
22 | use Moose::Autobox; |
23 | use autobox; |
5272f13f |
24 | |
25 | my $x; |
26 | $x->defined; # false |
27 | |
28 | $x = 10; |
29 | $x->defined; # true |
31d40d73 |
30 | |
31 | =head1 DESCRIPTION |
32 | |
8937074a |
33 | This is a role to describes a defined value. |
34 | |
260cc81f |
35 | =head1 METHODS |
36 | |
37 | =over 4 |
38 | |
260cc81f |
39 | =item B<defined> |
40 | |
41 | =back |
42 | |
5272f13f |
43 | =over 4 |
44 | |
45 | =item B<meta> |
46 | |
47 | =back |
48 | |
31d40d73 |
49 | =head1 BUGS |
50 | |
51 | All complex software has bugs lurking in it, and this module is no |
52 | exception. If you find a bug please either email me, or add the bug |
53 | to cpan-RT. |
54 | |
55 | =head1 AUTHOR |
56 | |
57 | Stevan Little E<lt>stevan@iinteractive.comE<gt> |
58 | |
59 | =head1 COPYRIGHT AND LICENSE |
60 | |
61 | Copyright 2006 by Infinity Interactive, Inc. |
62 | |
63 | L<http://www.iinteractive.com> |
64 | |
65 | This library is free software; you can redistribute it and/or modify |
66 | it under the same terms as Perl itself. |
67 | |
68 | =cut |