Perinci::Object::Metadata - Base class for Perinci::Object metadata classes
This document describes version 0.19 of Perinci::Object::Metadata (from Perl distribution Perinci-Object), released on 2014-11-07.
Constructor.
Get version.
Get underlying data structure.
Return type (e.g. function, package).
function
package
Get or set property value in the specified language (i.e., either in prop or prop.alt.lang.XXX properties).
prop
prop.alt.lang.XXX
Known options:
lang => STR
Defaults to metadata's default_lang (which in turns default to en_US if unspecified).
default_lang
en_US
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.
"I love you"
"{en_US I love you}"
Get or set name property. Will call langprop().
name
langprop()
Get or set summary property. Will call langprop().
summary
Get or set description property. Will call langprop().
description
Get or set caption property. Will call langprop().
caption
Please visit the project's homepage at https://metacpan.org/release/Perinci-Object.
Source repository is at https://github.com/perlancar/perl-Perinci-Object.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Perinci-Object
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.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2014 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Perinci::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::Object
CPAN shell
perl -MCPAN -e shell install Perinci::Object
For more information on module installation, please visit the detailed CPAN module installation guide.