Class: RubyDocx::Convertor::Html::Span
- Defined in:
- lib/ruby_docx/convertors/elements/html/span.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from RubyDocx::Convertor::Html::Base
Instance Method Details
#convert ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/ruby_docx/convertors/elements/html/span.rb', line 3 def convert RubyDocx::Row.new( tag.children.select{|child| child.is_a? Nokogiri::XML::Text }.map(&:content).join(' '), { 'white-space' => 'pre' } ) end |