lib/esvg/utils.rb in esvg-4.3.9 vs lib/esvg/utils.rb in esvg-4.4.0
- old
+ new
@@ -6,15 +6,9 @@
def sub_path(root, path)
path.sub(File.join(root,''),'')
end
- def symbolize_keys(hash)
- h = {}
- hash.each {|k,v| h[k.to_sym] = v }
- h
- end
-
def attributes(hash)
att = []
hash.each do |key, value|
att << %Q{#{key.to_s.gsub(/_/,'-')}="#{value}"} unless value.nil?
end