Michael G Schwern > Class-Fields-0.204 > Class::Fields::Inherit

Download:
Class-Fields-0.204.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Class::Fields::Inherit - Inheritance of %FIELDS

SYNOPSIS ^

    use Class::Fields::Inherit;
    inherit_fields($derived_class, $base_class);

DESCRIPTION ^

A simple module to handle inheritance of the %FIELDS hash. base.pm is usually its only customer, though there's nothing stopping you from using it.

inherit_fields
  inherit_fields($derived_class, $base_class);

The $derived_class will inherit all of the $base_class's fields. This is a good chunk of what happens when you use base.pm.

AUTHOR ^

Michael G Schwern <schwern@pobox.com> largely from code liberated from fields.pm

SEE ALSO ^

base, Class::Fields

syntax highlighting: