Sha256: d1cf11c7e3bbf51aa19d200618f16ca7efdd8418243e84e663df9ac56e9d758b
Contents?: true
Size: 374 Bytes
Versions: 6
Compression:
Stored size: 374 Bytes
Contents
package Javonet::Core::Handler::HandlerDictionary; use strict; use warnings FATAL => 'all'; use Moose; our %handler_dict; sub add_handler_to_dict{ my $command_type = shift; my $handler = shift; $handler_dict{$command_type} = $handler; } sub get_handler { my $command_type = shift; my $handler = $handler_dict{$command_type}; return $handler; } 1;
Version data entries
6 entries across 3 versions & 1 rubygems