Perlbug::Object::Patch - Patch class


Perlbug documentation Contained in the Perlbug distribution.

Index


Code Index:

NAME

Top

Perlbug::Object::Patch - Patch class

DESCRIPTION

Top

Perlbug patch class.

For inherited methods, see Perlbug::Object

SYNOPSIS

Top

	use Perlbug::Object::Patch;

	my $o_patch = Perlbug::Object::Patch->new($o_perlbug);

	print $o_patch->read('19990127.003')->format('a');




METHODS

Top

new

Create new Patch object:

	my $o_patch = Perlbug::Object::Patch->new();

AUTHOR

Top

Richard Foley perlbug@rfi.net 2000


Perlbug documentation Contained in the Perlbug distribution.
# Perlbug bug record handler
# (C) 1999 Richard Foley RFI perlbug@rfi.net
# $Id: Patch.pm,v 1.17 2002/01/11 13:51:05 richardf Exp $
#

package Perlbug::Object::Patch;
use strict;
use vars qw($VERSION @ISA);
$VERSION = do { my @r = (q$Revision: 1.17 $ =~ /\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'		=> 'Patch',
		'from'		=> [qw(bug)],
		'to'		=> [qw(change version)],
	);

	bless($self, $class);
}



# 
1;