|
NAMEVenus::Role::Patchable - Patchable Role ABSTRACTPatchable Role for Perl 5 SYNOPSISpackage Example; use Venus::Class; with 'Venus::Role::Patchable'; package main; my $example = Example->new; # my $patch = $example->patch; # bless(.., "Venus::Space") DESCRIPTIONThis package modifies the consuming package and provides methods for patching (or monkey-patching) routines in the calling package using "patch" in Venus::Space. METHODSThis package provides the following methods: patchpatch(string $name, coderef $code) (Venus::Space) The patch method overwrites the named subroutine in the calling package using "patch" in Venus::Space returning a Venus::Space object that can be used to restore the original subroutine when "unpatch" in Venus::Space is called. Since 3.55
AUTHORSAwncorp, "awncorp@cpan.org" LICENSECopyright (C) 2022, Awncorp, "awncorp@cpan.org". This program is free software, you can redistribute it and/or modify it under the terms of the Apache license version 2.0.
|