1Rose::Class(3)        User Contributed Perl Documentation       Rose::Class(3)
2
3
4

NAME

6       Rose::Class - A very simple class base class.
7

SYNOPSIS

9           package MyClass;
10
11           use Rose::Class;
12           our @ISA = qw(Rose::Class);
13
14           sub foo { ... }
15           ...
16
17           MyClass->foo(...) or die MyClass->error;
18           ...
19

DESCRIPTION

21       Rose::Class is a generic base class for classes.  It provides a single
22       class method ("error"), but may be expanded further in the future.
23
24       A class that inherits from Rose::Class is not expected to allow objects
25       of that class to be instantiated, since the namespace for class and
26       object methods is shared.  For example, it is common for
27       Rose::Object-derived classes to have "error" methods, but this would
28       conflict with the Rose::Class method of the same name.
29

CLASS METHODS

31       error [ERROR]
32           Get or set the class-wide error.  By convention, this should be a
33           scalar that stringifies to an error message.  A simple scalar
34           containing a string is the most commonly used value.
35

AUTHOR

37       John C. Siracusa (siracusa@gmail.com)
38

LICENSE

40       Copyright (c) 2010 by John C. Siracusa.  All rights reserved.  This
41       program is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself.
43
44
45
46perl v5.30.0                      2019-07-26                    Rose::Class(3)
Impressum