NAME
Class::Easy::Base - base package for classes
ABSTRACT
when you use this package, it makes everything of Class::Easy available for you with OOP sause.
SYNOPSIS
SYNOPSIS
package My::Class;
use Class::Easy::Base;
has x => (is => 'ro');
has 'y';
1;
package main;
my $c = My::Class->new (x => 1, y => 2);
$c->x; # return 1
$c->x (3); # store 3
BEWARE
THIS PACKAGE PUT HERSELF INTO CALLER CLASS @ISA. IF YOU DON'T WANT SUCH STRANGE BEHAVIOUR, PLEASE USE Class::Easy
METHODS
new
create new object
my $c = My::Class->new (x => 1, y => 2);
attach_paths
make two accessor methods: lib_path and package_path
list_all_subs
return sub list
for detailed explanation, please see 'list_all_subs_for' function in Class::Easy
set_field_values
set field values by calling accessor methods
$c->set_field_values (x => 3, y => 4);
# equivalent calls:
$c->x (3);
$c->y (4);
AUTHOR
Ivan Baktsheev, <apla at the-singlers.us>
BUGS
Please report any bugs or feature requests to my email address, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Class-Easy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2008-2009 Ivan Baktsheev
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.