Inline::Ruby::dRuby::Client - [quick use dRuby object from perl]


Inline-Ruby-dRuby-Client documentation  | view source Contained in the Inline-Ruby-dRuby-Client distribution.

Index


NAME

Top

Inline::Ruby::dRuby::Client - [quick use dRuby object from perl]

SYNOPSIS

Top

    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
    }




DESCRIPTION

Top

This module is dRuby object's delegetor. use this module, so quick use ruby's instance.

AUTHOR

Top

Yuichi Tateno <hotchpotch@gmail.com>

SEE ALSO

Top

Inline::Ruby

LICENCE AND COPYRIGHT

Top


Inline-Ruby-dRuby-Client documentation  | view source Contained in the Inline-Ruby-dRuby-Client distribution.