NAME
PiFlash::Object - object functions for PiFlash classes
VERSION
version 0.4.3
SYNOPSIS
package PiFlash::Example;
use parent 'PiFlash::Object';
sub object_params
(
return qw(name type); # and any other required object parameter names
}
my $obj = PiFlash::Example->new( {name => "foo", type => "bar");
DESCRIPTION
PiFlash::Object was written so that PiFlash::Hook and PiFlash::Plugin could inherit and share the same new() class method, rather than have similar and separate implementations. It isn't of interest to most PiFlash users.
In order to use it, the class must define a class method called object_params() which returns a list of the required parameter names for each object of the class.
SEE ALSO
piflash, PiFlash::Hook, PiFlash::Plugin
AUTHOR
Ian Kluft <cpan-dev@iankluft.com>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2017-2019 by Ian Kluft.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004