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

OODoc::Text::Default - one default for an option in one subroutine

INHERITANCE

 OODoc::Text::Default
   is an OODoc::Text
   is an OODoc::Object

SYNOPSIS

DESCRIPTION

Each OODoc::Text::Subroutine can have a list of options, which have default values which are each captured in a separate object as described in this manual page.

OVERLOADED

overload: '""' (stringification)

overload: '==' and '!='

overload: 'cmp' (string comparison)

METHODS

Constructors

OODoc::Text::Default->new(OPTIONS)

     Option     --Defined in     --Default
     container    OODoc::Text      new(subroutine)
     description  OODoc::Text      ''
     linenr       OODoc::Text      <required>
     name         OODoc::Text      undef
     subroutine                    <required>
     type         OODoc::Text      'Default'
     value                         <required>

    . container OBJECT

    . description STRING

    . linenr INTEGER

    . name STRING

    . subroutine OBJECT

      The subroutine in which this option lives.

    . type STRING

    . value STRING

      The value which is related to this default.

Inheritance knowledge

$obj->extends([OBJECT])

Attributes

$obj->container([OBJECT])

$obj->description

$obj->name

$obj->subroutine

    Returns the subroutine object for this option.

$obj->type

$obj->value

    The value of this default.

Location

$obj->manual([NAME])

$obj->unique

$obj->where

Collected

$obj->example(OBJECT)

$obj->examples

$obj->findDescriptionObject

$obj->openDescription

Commonly used functions

$obj->filenameToPackage(FILENAME)

OODoc::Text::Default->filenameToPackage(FILENAME)

$obj->mkdirhier(DIRECTORY)

OODoc::Text::Default->mkdirhier(DIRECTORY)

Manual Repository

$obj->addManual(MANUAL)

$obj->mainManual(NAME)

$obj->manuals

$obj->manualsForPackage(NAME)

$obj->packageNames

DIAGNOSTICS

Error: manual definition requires manual object

A call to addManual() expects a new manual object (a OODoc::Manual), however an incompatible thing was passed. Usually, intended was a call to manualsForPackage() or mainManual().

SEE ALSO

This module is part of OODoc distribution version 0.96, built on December 11, 2006. Website: http://perl.overmeer.net/oodoc/

LICENSE

Copyrights 2003-2006 by Mark Overmeer. For contributors see ChangeLog.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html