dac36dde5b
base class to treat unhandled method calls as no-ops. PR: 32965 Submitted by: Sergey Skvortsov <skv@FreeBSD.org>
12 lines
332 B
Text
12 lines
332 B
Text
Normally, if you try to call a method that there's no handler for, you
|
|
get an error:
|
|
|
|
Can't locate object method "flork" via package "X".
|
|
|
|
But for classes that inherit from Class::BlackHole, unhandled methods
|
|
become just no-operations.
|
|
|
|
WWW: http://search.cpan.org/search?dist=Class-BlackHole
|
|
|
|
-- Sergey Skvortsov
|
|
skv@FreeBSD.org
|