MATSUNO★Tokuhiro > mRuby-0.06 > mRuby::State

Download:
mRuby-0.06.tar.gz

Annotate this POD

View/Report Bugs
Source  

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.

syntax highlighting: