X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FAutobox%2FDefined.pm;h=e368cf3d7fb96af8b511c7a47f5d6ad03717fb13;hb=ea4e64bf393378b8e16896f6618a98fda24cb2fc;hp=210b22b85f3792e83902f58e74e40808d64c07a1;hpb=252ab1a26175a028754adbe4589cd87bc5240ce6;p=gitmo%2FMoose-Autobox.git diff --git a/lib/Moose/Autobox/Defined.pm b/lib/Moose/Autobox/Defined.pm index 210b22b..e368cf3 100644 --- a/lib/Moose/Autobox/Defined.pm +++ b/lib/Moose/Autobox/Defined.pm @@ -7,10 +7,61 @@ with 'Moose::Autobox::Item'; sub defined { 1 } -sub do { - my ($self, $block) = @_; - local $_ = $self; - $block->($self); -} +1; -1; \ No newline at end of file +__END__ + +=pod + +=head1 NAME + +Moose::Autobox::Defined - the Defined role + +=head1 SYNOPOSIS + + use Moose::Autobox; + + my $x; + $x->defined; # false + + $x = 10; + $x->defined; # true + +=head1 DESCRIPTION + +This is a role to describes a defined value. + +=head1 METHODS + +=over 4 + +=item B + +=back + +=over 4 + +=item B + +=back + +=head1 BUGS + +All complex software has bugs lurking in it, and this module is no +exception. If you find a bug please either email me, or add the bug +to cpan-RT. + +=head1 AUTHOR + +Stevan Little Estevan@iinteractive.comE + +=head1 COPYRIGHT AND LICENSE + +Copyright 2006-2008 by Infinity Interactive, Inc. + +L + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut \ No newline at end of file