The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Object::Base

ABSTRACT

Data-Object Base Class

SYNOPSIS

  use parent 'Data::Object::Base';

DESCRIPTION

Data::Object::Base is an abstract base class that mostly provides identity and classification for Data::Object classes, and common routines for operating on any type of Data-Object object.

METHODS

This package implements the following methods.

class

  class() : Str

The class method returns the class name for the given class or object.

class example
  # given $self (Foo::Bar)

  $self->class();

  # Foo::Bar (string)

space

  space(Str $arg1) : Object

The space method returns a Data::Object::Space object for the given class, object or argument.

space example
  # given $self (Foo::Bar)

  $self->space();

  # Foo::Bar (space object)

  $self->space('Foo/Baz');

  # Foo::Baz (space object)

type

  type() : Str

The type method returns object type string.

type example
  my $type = $self->type();