Class::Easy::Base - base package for classes
when you use this package, it makes everything of Class::Easy available for you with OOP sause.
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
THIS PACKAGE PUT HERSELF INTO CALLER CLASS @ISA. IF YOU DON'T WANT SUCH STRANGE BEHAVIOUR, PLEASE USE Class::Easy
create new object
my $c = My::Class->new (x => 1, y => 2);
make two accessor methods: lib_path and package_path
return sub list
for detailed explanation, please see 'list_all_subs_for' function in Class::Easy
set field values by calling accessor methods
$c->set_field_values (x => 3, y => 4); # equivalent calls: $c->x (3); $c->y (4);
<apla at the-singlers.us>
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.
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.