Method: Sass::Script::Parser#initialize
- Defined in:
- lib/sass/script/parser.rb
#initialize(str, line, offset, options = {}) ⇒ Parser
Returns a new instance of Parser.
32 33 34 35 36 37 |
# File 'lib/sass/script/parser.rb', line 32
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
|