forked from perldude/Class-Simple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
executable file
·48 lines (34 loc) · 1.56 KB
/
Copy pathREADME
File metadata and controls
executable file
·48 lines (34 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Class-Simple
=========================
This is a simple object-oriented base class. There are plenty of oth-
ers that are much more thorough and whatnot but sometimes I want some-
thing simple so I can get just going (no doubt because I am a simple
guy) so I use this.
What do I mean by simple? First off, I don't want to have to list out
all my methods beforehand. I just want to use them (Yeah, yeah, it
doesn't catch typos--that's what testing and Class::Std are for :-).
Next, I want to be able to call my methods by $obj->foo(1) or
$obj->set_foo(1), by $obj->foo() or $obj->get_foo(). Don't tell ME I
have to use get_ and set_ (I would just override that restriction in
Class::Std anyway). Simple!
I did want some neat features, though, so these are inside-out objects
(meaning the object isn't simply a hash so you can't just go in and
muck with attributtes outside of methods), privatization of methods is
supported, as is serialization out and back in again.
Note that this is my first module for CPAN so please be gentle
with the noob.
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
Class::ISA
COPYRIGHT AND LICENCE
Copyright (C) 2006 by Michael Sullivan (perldude@mac.com)
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.6 or,
at your option, any later version of Perl 5 you may have available.
$Id: README,v 1.7 2007/08/23 17:42:16 sullivan Exp $