PiFlash::Object - object functions for PiFlash classes
version 0.4.3
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");
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.
piflash, PiFlash::Hook, PiFlash::Plugin
Ian Kluft <cpan-dev@iankluft.com>
This software is Copyright (c) 2017-2019 by Ian Kluft.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install PiFlash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PiFlash
CPAN shell
perl -MCPAN -e shell install PiFlash
For more information on module installation, please visit the detailed CPAN module installation guide.