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

NAME

Data::Object::Undef

ABSTRACT

Data-Object Undef Class

SYNOPSIS

  use Data::Object::Undef;

  my $undef = Data::Object::Undef->new(undef);

DESCRIPTION

Data::Object::Undef provides routines for operating on Perl 5 undefined data. Undef methods work on undefined values.

METHODS

This package implements the following methods.

new

  # given undef

  my $undef = Data::Object::Undef->new(undef);

The new method expects an undefined value and returns a new class instance.

roles

  # given $undef

  $undef->roles;

The roles method returns the list of roles attached to object. This method returns a Data::Object::Array object.

rules

  my $rules = $undef->rules();

The rules method returns consumed rules.

defined

  # given undef

  $undef->defined ? 'Yes' : 'No'; # No

The defined method always returns false. This method returns a Data::Object::Number object.

eq

  # given $undef

  $undef->eq; # exception thrown

This method is a consumer requirement but has no function and is not implemented. This method will throw an exception if called.

gt

  # given $undef

  $undef->gt; # exception thrown

This method is a consumer requirement but has no function and is not implemented. This method will throw an exception if called.

ge

  # given $undef

  $undef->ge; # exception thrown

This method is a consumer requirement but has no function and is not implemented. This method will throw an exception if called.

lt

  # given $undef

  $undef->lt; # exception thrown

This method is a consumer requirement but has no function and is not implemented. This method will throw an exception if called.

le

  # given $undef

  $undef->le; # exception thrown

This method is a consumer requirement but has no function and is not implemented. This method will throw an exception if called.

ne

  # given $undef

  $undef->ne; # exception thrown

This method is a consumer requirement but has no function and is not implemented. This method will throw an exception if called.

ROLES

This package inherits all behavior from the folowing role(s):

RULES

This package adheres to the requirements in the folowing rule(s):