Module: ArticleJSON::Export::Common::HTML::Elements::Shared::Caption
- Included in:
- Embed, Image, Quote, FacebookInstantArticle::Elements::Embed
- Defined in:
- lib/article_json/export/common/html/elements/shared/caption.rb
Instance Method Summary collapse
-
#caption_node(tag_name) ⇒ Nokogiri::XML::NodeSet
Generate the caption node.
Instance Method Details
#caption_node(tag_name) ⇒ Nokogiri::XML::NodeSet
Generate the caption node
11 12 13 14 15 16 17 |
# File 'lib/article_json/export/common/html/elements/shared/caption.rb', line 11 def (tag_name) create_element(tag_name) do || @element..each do |child_element| .add_child(text_exporter.new(child_element).export) end end end |