NAME
Wikibase::Datatype::Print::Value::Property - Wikibase property value pretty print helpers.
SYNOPSIS
use Wikibase::Datatype::Print::Value::Property 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::Property object.
Returns string in scalar context. Returns list of lines in array context.
ERRORS
print():
Object isn't 'Wikibase::Datatype::Value::Property'.
Option 'cb' must be a instance of Wikibase::Cache.
EXAMPLE
use strict;
use warnings;
use Wikibase::Datatype::Print::Value::Property;
use Wikibase::Datatype::Value::Property;
# Object.
my $obj = Wikibase::Datatype::Value::Property->new(
'value' => 'P31',
);
# Print.
print Wikibase::Datatype::Print::Value::Property::print($obj)."\n";
# Output:
# P31
DEPENDENCIES
Error::Pure, Exporter, Readonly.
SEE ALSO
- Wikibase::Datatype::Value::Property
-
Wikibase property 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