mRuby - mruby binding for perl5.
use mRuby; my $mruby = mRuby->new(src => '9'); my $ret = $mruby->run();
mRuby is mruby binding for perl5.
my $mruby = mRuby->new(src => $src : Str) : mRuby
Parse src and generate mRuby object.
src
mRuby
my $mruby = mRuby->new(file => $file : Str) : mRuby
Parse source from file and generate mRuby object.
file
my $ret = $mruby->run() : Any
Run mruby code and get a return value.
my $ret = $mruby->funcall($funcname : Str, ...) : Any
Call specified named mruby function from toplevel context and get a return value.
toplevel
Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>
karupanerura <karupa@cpan.org>
See mRuby::State
Copyright (C) Tokuhiro Matsuno
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install mRuby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mRuby
CPAN shell
perl -MCPAN -e shell install mRuby
For more information on module installation, please visit the detailed CPAN module installation guide.