Method: Sass::Script::Lexer#initialize
- Defined in:
- lib/sass/script/lexer.rb
#initialize(str, line, offset, options) ⇒ Lexer
Returns a new instance of Lexer.
153 154 155 156 157 158 159 160 161 162 |
# File 'lib/sass/script/lexer.rb', line 153
def initialize(str, line, offset, options)
@scanner = str.is_a?(StringScanner) ? str : Sass::Util::MultibyteStringScanner.new(str)
@line = line
@offset = offset
@options = options
@interpolation_stack = []
@prev = nil
@tok = nil
@next_tok = nil
end
|