Object::Simple::Mixin::AttrOptions - Mixin to get attr options [DISCOURAGED]
This module is discouraged now, because I feel attribute is not explicit for lightweight language.
I will not maintain this module. =head1 VERSION
Version 0.0301
### Book.pm package Book; use Object::Simple( mixins => ['Object::Simple::Mixin::AttrOptions'] ); sub title : Attr { default => 1, read_only => 1 } sub author : Attr { default => 2, chained => 1 } Object::Simple->build_class; ### using Book.pm use Book; my $book = Book->new; my $attr_options = $book->attr_options; # or my $attr_options = Book->attr_options;
attr_options
get attribute options
my $attr_options = $book->attr_options;
attr_options return hash reference like this.
{ title => {default => 1, read_only => 1}, author => {default => 2} }
Yuki Kimoto, <kimoto.yuki at gmail.com>
<kimoto.yuki at gmail.com>
Please report any bugs or feature requests to bug-object-simple-mixin-attroptions at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Object-Simple-Mixin-AttrOptions. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-object-simple-mixin-attroptions at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Object::Simple::Mixin::AttrOptions
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Object-Simple-Mixin-AttrOptions
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Object-Simple-Mixin-AttrOptions
CPAN Ratings
http://cpanratings.perl.org/d/Object-Simple-Mixin-AttrOptions
Search CPAN
http://search.cpan.org/dist/Object-Simple-Mixin-AttrOptions/
Copyright 2009 Yuki Kimoto, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Object::Simple::Mixin::AttrOptions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Object::Simple::Mixin::AttrOptions
CPAN shell
perl -MCPAN -e shell install Object::Simple::Mixin::AttrOptions
For more information on module installation, please visit the detailed CPAN module installation guide.