]> git.openstreetmap.org Git - rails.git/blob - config/initializers/inline_svg.rb
Add frozen_string_literal comments to ruby files
[rails.git] / config / initializers / inline_svg.rb
1 # frozen_string_literal: true
2
3 module OpenStreetMap
4   class SvgToSymbolTransform < InlineSvg::CustomTransformation
5     def transform(doc)
6       with_svg(doc) do |svg|
7         svg.name = "symbol"
8       end
9     end
10   end
11 end
12
13 InlineSvg.configure do |config|
14   config.add_custom_transformation(:attribute => :to_symbol, :transform => OpenStreetMap::SvgToSymbolTransform)
15 end