How to add attribute to Nokogiri node?
I believe you should just need to use the []= method, i.e.
node['foo'] = 'bar'
You could also use node.set_attribute('foo', 'bar')
.
I believe you should just need to use the []= method, i.e.
node['foo'] = 'bar'
You could also use node.set_attribute('foo', 'bar')
.