1Mason::Tidy(3)        User Contributed Perl Documentation       Mason::Tidy(3)
2
3
4

NAME

6       Mason::Tidy - Engine for masontidy
7

VERSION

9       version 2.57
10

SYNOPSIS

12           use Mason::Tidy;
13
14           my $mc = Mason::Tidy->new(mason_version => 2);
15           my $dest = $mc->tidy($source);
16

DESCRIPTION

18       This is the engine used by masontidy - read that first to get an
19       overview.
20
21       You can call this API from your own program instead of executing
22       "masontidy".
23

CONSTRUCTOR PARAMETERS

25       indent_block
26       indent_perl_block
27       mason_version (required)
28       perltidy_argv
29       perltidy_block_argv
30       perltidy_line_argv
31       perltidy_tag_argv
32           These options are the same as the equivalent "masontidy" command-
33           line options, replacing dashes with underscore (e.g. the
34           "--indent-per-block" option becomes "indent_perl_block" here).
35

METHODS

37       tidy ($source)
38           Tidy component source $source and return the tidied result. Throw
39           fatal error if source cannot be tidied (e.g. invalid syntax).
40

AUTHOR

42       Jonathan Swartz <swartz@pobox.com>
43
45       This software is copyright (c) 2011 by Jonathan Swartz.
46
47       This is free software; you can redistribute it and/or modify it under
48       the same terms as the Perl 5 programming language system itself.
49
50
51
52perl v5.36.0                      2022-07-22                    Mason::Tidy(3)
Impressum