Only set explicit ivars in the lexer.
This commit is contained in:
parent
44bf1dd1ca
commit
fd2f727183
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue