| Class | LocalJumpError |
| In: |
eval.c
|
| Parent: | StandardError |
call_seq:
local_jump_error.exit_value => obj
Returns the exit value associated with this LocalJumpError.
/*
* call_seq:
* local_jump_error.exit_value => obj
*
* Returns the exit value associated with this +LocalJumpError+.
*/
static VALUE
localjump_xvalue(exc)
VALUE exc;
{
return rb_iv_get(exc, "@exit_value");
}
The reason this block was terminated: :break, :redo, :retry, :next, :return, or :noreason.
/*
* call-seq:
* local_jump_error.reason => symbol
*
* The reason this block was terminated:
* :break, :redo, :retry, :next, :return, or :noreason.
*/
static VALUE
localjump_reason(exc)
VALUE exc;
{
return rb_iv_get(exc, "@reason");
}