Only set explicit ivars in the lexer.

This commit is contained in:
Yorick Peterse 2014-05-15 19:48:18 +02:00
parent 44bf1dd1ca
commit fd2f727183
1 changed files with 1 additions and 4 deletions

View File

@ -48,11 +48,8 @@ module Oga
# HTML void elements such as `<link href="">`.
#
def initialize(data, options = {})
options.each do |key, value|
instance_variable_set("@#{key}", value) if respond_to?(key)
end
@data = data
@html = options[:html]
reset
end