lib/iq/html.rb in iq-html-0.1.1 vs lib/iq/html.rb in iq-html-0.1.2
- old
+ new
@@ -84,10 +84,10 @@
raise ArgumentError, 'Third argument must be an attribute hash or boolean escape value'
end
when 1
case args.last
when String then escape, content = true, *args
- when Hash then attributes = *args
+ when Hash then attributes = args.last
else
raise ArgumentError, 'Second argument must be a content string or an attributes hash'
end
when 0
else
\ No newline at end of file