NAME

Astro::App::Satpass2::Format::Dump - Format Astro::App::Satpass2 output as dump.

SYNOPSIS

use Astro::App::Satpass2::Format::Dump;
my $fmt = Astro::App::Satpass2::Format::Dump->new();
foreach my $tle ( @bodies ) {
    $fmt->list( $tle );
}

DETAILS

This formatter is a troubleshooting tool which simply dumps the arguments to the individual formatter methods. The dumper used can be specified by the dumper() method. See this method's documentation for the default.

This class does not implement any functionality to make use of the values of any of the attributes of the superclass.

METHODS

This class supports the following public methods, beyond those provided by Astro::App::Satpass2::Format:

dumper

print $fmt->dumper()->( $something );
use Data::Dump;
$fmt->dumper( Data::Dump->can( 'dump' ) );

The dumper attribute is a reference to the code actually used to perform the dump. This code expects the thing to be dumped as its only argument.

This method acts as both accessor and mutator for the dumper attribute. Without arguments it is an accessor, returning the current value of the dumper attribute.

If passed an argument, that argument becomes the new value of dumper, and the object itself is returned so that calls may be chained.

As a convenience, the argument to the mutator can be either a code reference (accepted as-is) or the name of a known dumper class. More than one class name can be specified, separated by commas.

The default is that obtained by setting

$fmt->dumper( 'YAML,Data::Dumper' );

The known dumper classes are Data::Dumper, JSON, and YAML.

SUPPORT

Support is by the author. Please file bug reports at https://rt.cpan.org/Public/Dist/Display.html?Name=Astro-App-Satpass2, https://github.com/trwyant/perl-Astro-App-Satpass2/issues, or in electronic mail to the author.

AUTHOR

Thomas R. Wyant, III wyant at cpan dot org

COPYRIGHT AND LICENSE

Copyright (C) 2010-2024 by Thomas R. Wyant, III

This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.