Method: Sass::Script::Lexer#line

Defined in:
lib/sass/script/lexer.rb

#lineInteger

The line number of the lexer's current position.

Returns:

  • (Integer)
[View source]

29
30
31
32
# File 'lib/sass/script/lexer.rb', line 29

def line
  return @line unless @tok
  @tok.source_range.start_pos.line
end