Class: SvgOptimizer::Plugins::RemoveComment

Inherits:
Base
  • Object
show all
Defined in:
lib/svg_optimizer/plugins/remove_comment.rb

Instance Attribute Summary

Attributes inherited from Base

#xml

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from SvgOptimizer::Plugins::Base

Instance Method Details

#processObject



4
5
6
# File 'lib/svg_optimizer/plugins/remove_comment.rb', line 4

def process
  xml.xpath("//comment()").remove
end