NAME
MooX::SingleArg - Support single-argument instantiation.
SYNOPSIS
CLASS ARGUMENTS
single_arg
__PACKAGE__->single_arg(
'foo'
);
Use this to declare the init_arg
of the single argument.
force_single_arg
__PACKAGE__->force_single_arg( 1 );
Causes single-argument processing to happen even if a hashref is passed in as the single argument.
CLASS METHODS
has_single_arg
Returns true if "single_arg" has been called.
SEE ALSO
SUPPORT
See "SUPPORT" in MooX::BuildArgs.
AUTHORS
See "AUTHORS" in MooX::BuildArgs.