Inline::Ruby::dRuby::Client - [quick use dRuby object from perl]
use Inline::Ruby::dRuby::Client; my $ruby_obj = Inline::Ruby::dRuby::Client->new('druby://localhost:10001') # call ruby's instance method $ruby_obj->ruby_method(); use Inline::Ruby qw/rb_iter/; # use ruby's iter # call ruby's instance with block rb_iter($ruby_obj, sub { my $arg = shift; return $arg * $arg; })->each; # If ruby's code.. ruby_obj.each {|arg| return arg * arg }
This module is dRuby object's delegetor. use this module, so quick use ruby's instance.
Yuichi Tateno <hotchpotch@gmail.com>
<hotchpotch@gmail.com>
Inline::Ruby
Copyright (c) 2006, Yuichi Tateno <hotchpotch@gmail.com>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Inline::Ruby::dRuby::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Inline::Ruby::dRuby::Client
CPAN shell
perl -MCPAN -e shell install Inline::Ruby::dRuby::Client
For more information on module installation, please visit the detailed CPAN module installation guide.