Class::Easy::Base - base package for classes


Class-Easy documentation  | view source Contained in the Class-Easy distribution.

Index


NAME

Top

Class::Easy::Base - base package for classes

ABSTRACT

Top

when you use this package, it makes everything of Class::Easy available for you with OOP sause.

SYNOPSIS

Top

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

Top

THIS PACKAGE PUT HERSELF INTO CALLER CLASS @ISA. IF YOU DON'T WANT SUCH STRANGE BEHAVIOUR, PLEASE USE Class::Easy

METHODS

Top

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

Top

Ivan Baktsheev, <apla at the-singlers.us>

BUGS

Top

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

Top

ACKNOWLEDGEMENTS

Top

COPYRIGHT & LICENSE

Top


Class-Easy documentation  | view source Contained in the Class-Easy distribution.