method new

Documentation for method new assembled from the following types:

class Perl6::Documentable::Search

From Perl6::Documentable::Search

(Perl6::Documentable::Search) method new

Defined as

method new(:$regsitry)

Creates a new instance of the class.

class Perl6::Documentable::Secondary

From Perl6::Documentable::Secondary

(Perl6::Documentable::Secondary) method new

Defined as

method new(:$kind!:$name!:@subkinds:@categories:$pod!:$origin)

Creates a new Perl6::Documentable::Secondary object. You should not create your own instances of this class. Instead of that, you should rely on Perl6::Documentable::Primary and use its @.defs attribute.

The $pod object is "normalized" when you use this method. That means, its title is modified and headings level are rewritten to avoid style problems.

class Perl6::Documentable::Primary

From Perl6::Documentable::Primary

(Perl6::Documentable::Primary) method new

Defined as

method new(Str :$filename!:$pod!)

$pod must follow this format:

=begin pod :kind("<kind>") :subkind("<subkind>") :category("<category>")
 
=TITLE title 
 
=SUBTITLE subtitle 
 
(...)
 
=end pod
 

If at least one of these elements is missing, a exception will be thrown.

$filename is the name of the file containing the pod. This attribute is useful because several pods can be present in the same file, at the same time.

class Perl6::Documentable::Index

From Perl6::Documentable::Index

(Perl6::Documentable::Index) method new

Defined as

method new(:$pod!:@meta!:$origin!)