Method: RubyVM::InstructionSequence#first_lineno
- Defined in:
- iseq.c
permalink #first_lineno ⇒ Object
Returns the number of the first source line where the instruction sequence was loaded from.
For example, using irb:
iseq = RubyVM::InstructionSequence.compile(‘num = 1 + 2’) #=> <RubyVM::InstructionSequence:<compiled>@<compiled>> iseq.first_lineno #=> 1
1567 1568 1569 1570 1571 |
# File 'iseq.c', line 1567
static VALUE
iseqw_first_lineno(VALUE self)
{
return rb_iseq_first_lineno(iseqw_check(self));
}
|