lib/heroicon/icon.rb in heroicon-0.2.3 vs lib/heroicon/icon.rb in heroicon-0.3.0

- old
+ new

@@ -13,10 +13,12 @@ def render return warning unless file.present? doc = Nokogiri::HTML::DocumentFragment.parse(file) svg = doc.at_css "svg" - svg["class"] = options[:class] if options[:class].present? + options.each do |key, value| + svg[key.to_s] = value + end doc end private