-
-
17 Oct 2010 15:17:14 UTC
- Distribution: Rose-Object
- Module version: 0.81
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone repository
- Issues (0)
- Testers (4177 / 1 / 0)
- Kwalitee
Bus factor: 1- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (35.39KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Test::More
- Test::Simple
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Rose::Class - A very simple class base class.
SYNOPSIS
package MyClass; use Rose::Class; our @ISA = qw(Rose::Class); sub foo { ... } ... MyClass->foo(...) or die MyClass->error; ...
DESCRIPTION
Rose::Class is a generic base class for classes. It provides a single class method (
error
), but may be expanded further in the future.A class that inherits from Rose::Class is not expected to allow objects of that class to be instantiated, since the namespace for class and object methods is shared. For example, it is common for Rose::Object-derived classes to have
error
methods, but this would conflict with the Rose::Class method of the same name.CLASS METHODS
- error [ERROR]
-
Get or set the class-wide error. By convention, this should be a scalar that stringifies to an error message. A simple scalar containing a string is the most commonly used value.
AUTHOR
John C. Siracusa (siracusa@gmail.com)
LICENSE
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Rose::Object, copy and paste the appropriate command in to your terminal.
cpanm Rose::Object
perl -MCPAN -e shell install Rose::Object
For more information on module installation, please visit the detailed CPAN module installation guide.