NAME
Object::Simple::Mixin::Meta - Mixin to get Object::Simple meta information
VERSION
Version 0.0102
SYNOPSIS
### Book.pm
package Book;
use Object::Simple(
mixins => ['Object::Simple::Mixin::Meta']
);
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 $meta_info = $book->meta;
# or
my $meta_info = Book->meta;
EXPORT
meta
meta
get meta information
my $meta_info = $book->attr_options;
meta return hash reference like this.
{
attr_options => {
title => {default => 1, read_only => 1},
author => {default => 2}
},
mearged_attr_options => {
...
}
}
AUTHOR
Yuki Kimoto, <kimoto.yuki at gmail.com>
BUGS
Please report any bugs or feature requests to bug-object-simple-mixin-meta at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Object-Simple-Mixin-Meta. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Object::Simple::Mixin::Meta
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Object-Simple-Mixin-Meta
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
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.