The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

mRuby::State - state object for mRuby

DESCRIPTION

This is a perl representation of mrb_state.

METHODS

my $state = mRuby::State->new() : mRuby::State

Create new instance of mRuby::State.

$state->parse_string($src : Str) : mRuby::ParserState

Parse ruby string and return new instance of mRuby::ParserState.

$state->generate_code($parser_state : mRuby::ParserState) : Int

Generate code from mRuby::ParserState.

$state->proc_new($n :Int) : mRuby::RProc

Get a mRuby::RProc object from irep.

my $ret = $state->run($proc : mRuby::RProc, $val : Any) : Any

Run the $proc and get a return value.