File Coverage

blib/lib/Inline/Ruby/dRuby/Client.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             package Inline::Ruby::dRuby::Client;
2 1     1   27130 use warnings;
  1         2  
  1         42  
3 1     1   5 use strict;
  1         2  
  1         41  
4 1     1   440 use Inline::Ruby qw(rb_eval rb_call_instance_method rb_call_class_method);
  0            
  0            
5             use Carp;
6              
7             our $VERSION = '0.0.2';
8              
9             sub new {
10             my ($class, $uri) = @_;
11             croak 'require druby uri.' unless($uri);
12              
13             rb_eval <
14             require 'drb'
15             DRb.start_service
16             END
17             return rb_call_class_method('DRbObject', 'new_with_uri', $uri);
18             }
19              
20             1;
21             __END__