Method: Parser::Source::Range#line
- Defined in:
- lib/parser/source/range.rb
#line ⇒ Integer Also known as: first_line
Line number of the beginning of this range. By default, the first line of a buffer is 1; as such, line numbers are most commonly one-based.
83 84 85 |
# File 'lib/parser/source/range.rb', line 83 def line @source_buffer.line_for_position(@begin_pos) end |