GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  ROSE::CLASS (3)

.ds Aq ’

NAME

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

CONTENTS

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

<B>error [ERROR]B> 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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 ROSE::CLASS (3) 2010-10-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.