NAME
Wikibase::Datatype::Print::Value::Monolingual - Wikibase monolingual value pretty print helpers.
SYNOPSIS
use Wikibase::Datatype::Print::Value::Monolingual qw(print);
my $pretty_print_string = print($obj, $opts_hr);
my @pretty_print_lines = print($obj, $opts_hr);
SUBROUTINES
print
my $pretty_print_string = print($obj, $opts_hr);
my @pretty_print_lines = print($obj, $opts_hr);
Construct pretty print output for Wikibase::Datatype::Value::Monolingual object.
Returns string in scalar context. Returns list of lines in array context.
ERRORS
print():
Object isn't 'Wikibase::Datatype::Value::Monolingual'.
EXAMPLE
use strict;
use warnings;
use Wikibase::Datatype::Print::Value::Monolingual;
use Wikibase::Datatype::Value::Monolingual;
# Object.
my $obj = Wikibase::Datatype::Value::Monolingual->new(
'language' => 'en',
'value' => 'English text',
);
# Print.
print Wikibase::Datatype::Print::Value::Monolingual::print($obj)."\n";
# Output:
# English text (en)
DEPENDENCIES
Error::Pure, Exporter, Readonly.
SEE ALSO
- Wikibase::Datatype::Value::Monolingual
-
Wikibase monolingual value datatype.
REPOSITORY
https://github.com/michal-josef-spacek/Wikibase-Datatype-Print
AUTHOR
Michal Josef Špaček mailto:skim@cpan.org
LICENSE AND COPYRIGHT
© 2020-2024 Michal Josef Špaček
BSD 2-Clause License
VERSION
0.17