Perinci::Object::Metadata(3pm)

Perinci::Object::Metadata3pm

Base class for perinci::object metadata classes

Version

This document describes version 0.311 of Perinci::Object::Metadata (from Perl distribution Perinci-Object), released on 2020-01-02.

Methods

new => obj

Constructor.

v => float

Get version.

as_struct => hash

Get underlying data structure.

type => str

Return type (e.g. "function", "package").

langprop([ \%opts, ]$prop[, $new_value])

Get or set property value in the specified language (i.e., either in "prop" or "prop.alt.lang.XXX" properties).

Known options:

•

lang => STR

Defaults to metadata's "default_lang" (which in turns default to "en_US" if unspecified).

•

mark_different_lang => BOOL (defaults to 1)

If set to true, text with different language than the language requested will be marked, e.g. "I love you" requested in Indonesian language where the value for that language is unavailable will result in "{en_US I love you}" being returned.

name([ $new_value ]) => $value

Get or set "name" property. Will call "langprop()".

summary([ $new_value ]) => $value

Get or set "summary" property. Will call "langprop()".

description([ $new_value ]) => $value

Get or set "description" property. Will call "langprop()".

caption([ $new_value ]) => $value

Get or set "caption" property. Will call "langprop()".

Homepage

Please visit the project's homepage at <https://metacpan.org/release/Perinci-Object>.

Source

Source repository is at <https://github.com/perlancar/perl-Perinci-Object>.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12–13

Bugs

Please report any bugs or feature requests on the bugtracker website <https://github.com/perlancar/perl-Perinci-Object/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Author

perlancar <[email protected]>

From libperinci-object-perl 0.311-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.