![]() |
![]()
| ![]() |
![]()
NAMETest2::Harness::Settings::Prefix - Abstraction of a settings category, aka prefix. DESCRIPTIONThis class represents a settings category (prefix). SYNOPSIS# You will rarely if ever need to construct settings yourself, usually a # component of Test2::Harness will expose them to you. my $settings = $thing->settings; my $display = $settings->display; # Once you have your prefix you can read data from it: my $verbose = $display->verbose; # If you dislike autoload methods you can use the 'field' method: my $verbose = $display->field('verbose'); # You can also change values: $display->field(verbose => 1); # You can also use the autoloaded method as an lvalue, but this breaks on # perls older than 5.16, so it is not used internally, and you should only # use it if you know you will never need an older perl: $display->verbose = 1; METHODSNote that any field that does not conflict with the predefined methods can be accessed via AUTOLOAD generating the methods as needed.
SOURCEThe source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/. MAINTAINERSAUTHORSCOPYRIGHTCopyright 2020 Chad Granum <exodist7@gmail.com>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
|