NAME

Object::Simple::Mixin::AttrOptions - Mixin class to get attribute options for Object::Simple

VERSION

Version 0.0201

SYNOPSIS

### Book.pm
package Book;
use Object::Simple( mixin => 'Object::Simple::Mixin::AttrOptions' );

sub title  : Attr { default => 1, read_only => 1 }
sub author : Attr { default => 2, type => 'Str' }

Object::Simple->end;

### using Book.pm
use Book;

my $book = Book->new;
my $attr_options = $book->attr_options;

EXPORT

Following method is exported.

attr_options

FUNCTIONS

attr_options

get attribute options

my $attr_options = $book->attr_options;

attr_options return hash reference like this.

{
    Book => {
        title  => { default => 1, read_only => 1 },
        author => { default => 2, type => 'Str' }
    }
}

AUTHOR

Yuki Kimoto, <kimoto.yuki at gmail.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Object::Simple::Mixin::AttrOptions

You can also look for information at:

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.