Method: Sass::Script::Lexer#offset
- Defined in:
- lib/sass/script/lexer.rb
#offset ⇒ Integer
The number of bytes into the current line of the lexer's current position (1-based).
38 39 40 41 |
# File 'lib/sass/script/lexer.rb', line 38
def offset
return @offset unless @tok
@tok.source_range.start_pos.offset
end
|