![]() |
![]()
| ![]() |
![]()
NAMEDancer::RPCPlugin::DispatchItem - Small object to handle dispatch-table items SYNOPSISuse Dancer::RPCPlugin::DispatchItem; use Dancer::Plugin::RPC::JSONRPC; jsonrpc '/json' => { publish => sub { return { 'system.ping' => dispatch_item( code => MyProject::Module1->can('sub1'), package => 'Myproject::Module1', ), }; }, }; EXPORTdispatch_item(%arguments)Arguments Named: DESCRIPTIONDancer::RPCPlugin::DispatchItem->new(%arguments)Arguments Named: $di->codeGetter for the "code" attibute. $di->packageGetter for the "package" attribute COPYRIGHT(c) MMXVI - Abe Timmerman <abetim@cpan.org>
|