Method: RubyVM::InstructionSequence#script_lines

Defined in:
iseq.c

#script_linesArray?

It returns recorded script lines if it is available. The script lines are not limited to the iseq range, but are entire lines of the source file.

Note that this is an API for ruby internal use, debugging, and research. Do not use this for any other purpose. The compatibility is not guaranteed.

Returns:



4309
4310
4311
4312
4313
4314
# File 'iseq.c', line 4309

static VALUE
iseqw_script_lines(VALUE self)
{
    const rb_iseq_t *iseq = iseqw_check(self);
    return ISEQ_BODY(iseq)->variable.script_lines;
}