spec
=pod spec
resource|r=s, verbose|v, help|h
=cut
$self->spec;
# using the options
$self->opts->resource;
$self->opts->verbose;
$self->opts->resource($new_resource);
$self->opts->verbose(0);
The spec method returns an arrayref of Getopt::Long option specs. By default, this package look for those specs as a comma-separated list in the POD section named "spec", short for "options specifications". These options are accessible as methods on the Data::Object::Opts object through the opts attribute.
spec() : ArrayRef[Str]
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 32:
Unknown directive: =description
- Around line 40:
Unknown directive: =signature
- Around line 44:
Unknown directive: =type