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) : mRuby::RProc
-
Generate code from mRuby::ParserState.
my $ret = $state->run($proc : mRuby::RProc, $val : Any) : Any
-
Run the
$proc
and get a return value. my $ret = $state->funcall($proc : mRuby::RProc, $funcname : Str, ...) : Any
-
Call specified named function in the
$proc
context and get a return value.