NAME

Wikibase::Datatype::Print::Value::Sense - Wikibase sense value pretty print helpers.

SYNOPSIS

use Wikibase::Datatype::Print::Value::Sense 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::Sense object.

Returns string in scalar context. Returns list of lines in array context.

ERRORS

print():
        Object isn't 'Wikibase::Datatype::Value::Sense'.
        Option 'cb' must be a instance of Wikibase::Cache.

EXAMPLE

use strict;
use warnings;

use Wikibase::Datatype::Print::Value::Sense;
use Wikibase::Datatype::Value::Sense;

# Object.
my $obj = Wikibase::Datatype::Value::Sense->new(
        'value' => 'L34727-S1',
);

# Print.
print Wikibase::Datatype::Print::Value::Sense::print($obj)."\n";

# Output:
# L34727-S1

DEPENDENCIES

Error::Pure, Exporter, Readonly.

SEE ALSO

Wikibase::Datatype::Value::Sense

Wikibase sense value datatype.

REPOSITORY

https://github.com/michal-josef-spacek/Wikibase-Datatype-Print

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2020-2023 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.14