class Sass::Script::Parser

def initialize(str, line, offset, options = {})

Parameters:
  • options ({Symbol => Object}) -- An options hash; see
  • offset (Integer) -- The character (not byte) offset where the script starts in the line.
  • line (Integer) -- The line on which the SassScript appears.
  • str (String, StringScanner) -- The source text to parse
def initialize(str, line, offset, options = {})
  @options = options
  @allow_extra_text = options.delete(:allow_extra_text)
  @lexer = lexer_class.new(str, line, offset, options)
  @stop_at = nil
end