Data::Object::Base
Data-Object Base Class
use parent 'Data::Object::Base';
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.
This package implements the following methods.
class() : Str
The class method returns the class name for the given class or object.
# given $self (Foo::Bar) $self->class(); # Foo::Bar (string)
space(Str $arg1) : Object
The space method returns a Data::Object::Space object for the given class, object or argument.
# given $self (Foo::Bar) $self->space(); # Foo::Bar (space object) $self->space('Foo/Baz'); # Foo::Baz (space object)
type() : Str
The type method returns object type string.
my $type = $self->type();
To install Data::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Object
CPAN shell
perl -MCPAN -e shell install Data::Object
For more information on module installation, please visit the detailed CPAN module installation guide.