Flowdock
method

first_lineno

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: InstructionSequence
first_lineno() public

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
Show source
Register or log in to add new notes.