Method: Oga::CSS::Parser#initialize

Defined in:
lib/oga/css/parser.rb

#initialize(data) ⇒ Parser

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Parser.

Parameters:

  • data (String)

    The input to parse.



249
250
251
# File 'lib/oga/css/parser.rb', line 249

def initialize(data)
  @lexer = Lexer.new(data)
end