Perlbug::Object::Thing - Thing class


Perlbug documentation Contained in the Perlbug distribution.

Index


Code Index:

NAME

Top

Perlbug::Object::Thing - Thing class

DESCRIPTION

Top

Perlbug Thing class.

id(14), name(bug), thing(object|attribute|function), description

For inherited methods, see Perlbug::Object

SYNOPSIS

Top

	use Perlbug::Object::Thing;

	my $o_thing = Perlbug::Object::Thing->new();

	print $o_thing->read('3')->format('a');




METHODS

Top

new

Create new Thing object:

	my $o_thing = Perlbug::Object::Thing->new();

AUTHOR

Top

Richard Foley perlbug@rfi.net 2001


Perlbug documentation Contained in the Perlbug distribution.
# Perlbug bug record handler
# (C) 1999 Richard Foley RFI perlbug@rfi.net
# $Id: Thing.pm,v 1.6 2001/08/20 18:57:31 mstevens Exp $
#

package Perlbug::Object::Thing;
use strict;
use vars qw($VERSION @ISA);
$VERSION = do { my @r = (q$Revision: 1.6 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; 
$|=1;


use Data::Dumper;
use Perlbug::Base;
use Perlbug::Object;
@ISA = qw(Perlbug::Object); 


sub new {
    my $proto = shift;
    my $class = ref($proto) || $proto; 
	my $o_base = (ref($_[0])) ? shift : Perlbug::Base->new;

	my $self = Perlbug::Object->new( $o_base,
		'name'		=> 'Thing',
		'from'		=> [qw()],
		'to'		=> [qw()],
	);

	bless($self, $class);
}


# 
1;