Returns a new instance of Parser.
See Also:
212 213 214 215 216 217
# File 'lib/oga/xml/parser.rb', line 212 def initialize(data, options = {}) @data = data @lexer = Lexer.new(data, options) @line = 1 @lexer.reset_native end