Class: RubyDocx::Convertor::Html::Tr
- Inherits:
-
Base
- Object
- Base
- RubyDocx::Convertor::Html::Tr
show all
- Defined in:
- lib/ruby_docx/convertors/elements/html/tr.rb
Instance Attribute Summary
Attributes inherited from Base
#css, #tag
Instance Method Summary
collapse
Methods inherited from Base
#build, #initialize, #styles
Instance Method Details
#convert ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/ruby_docx/convertors/elements/html/tr.rb', line 3
def convert
node = RubyDocx::TableRow.new
tag.children.each do |child|
node.append(RubyDocx::Convertor::Html.create_node(child, css)) unless child.is_a?(Nokogiri::XML::Text)
end
node
end
|