The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OP::Any - Object class wrapper for any type of variable

VERSION

  $Id: $

SYNOPSIS

  use OP::Any;

DESCRIPTION

Extends OP::Scalar

METHODS

Public Class Methods

  • assert(OP::Class $class: *@rules)

    Returns a new OP::Type::Any instance which encapsulates the received OP::Subtype rules.

      create "OP::Example" => {
        #
        # A *very* casual instance var ...
        #
        someVar  => OP::Any->assert(optional()),
    
        # ...
      };
  • new(OP::Class $class: Any $self)

    Returns a new OP::Any instance which encapsulates the received value.

      my $object = OP::Any->new($stuff);

DIAGNOSTICS

See OP::Class

CONFIGURATION AND ENVIRONMENT

See OP::Class

DEPENDENCIES

See OP::Class

INCOMPATIBILITIES

See OP::Class

BUGS AND LIMITATIONS

OP::Any instances may not be undef.

See OP::Class

SEE ALSO

This file is part of OP.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 121:

You forgot a '=back' before '=head1'