Class: SvgOptimizer::Plugins::RemoveEmptyTextNode

Inherits:
Base
  • Object
show all
Defined in:
lib/svg_optimizer/plugins/remove_empty_text_node.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



6
7
8
# File 'lib/svg_optimizer/plugins/remove_empty_text_node.rb', line 6

def process
  xml.xpath("//text()").each(&method(:remove_if_empty))
end