NAME

Wikibase::Datatype::Print::Value::Globecoordinate - Wikibase globe coordinate value pretty print helpers.

SYNOPSIS

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

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

ERRORS

print():
        Object isn't 'Wikibase::Datatype::Value::Globecoordinate'.

EXAMPLE

use strict;
use warnings;

use Wikibase::Datatype::Print::Value::Globecoordinate;
use Wikibase::Datatype::Value::Globecoordinate;

# Object.
my $obj = Wikibase::Datatype::Value::Globecoordinate->new(
        'value' => [49.6398383, 18.1484031],
);

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

# Output:
# (49.6398383, 18.1484031)

DEPENDENCIES

Error::Pure, Exporter, Readonly.

SEE ALSO

Wikibase::Datatype::Value::Globecoordinate

Wikibase globe coordinate 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-2024 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.17