Module: ArticleJSON::Export::Common::HTML::Elements::Quote
- Includes:
- Shared::Caption, Shared::Float
- Included in:
- AMP::Elements::Quote, HTML::Elements::Quote
- Defined in:
- lib/article_json/export/common/html/elements/quote.rb
Instance Method Summary collapse
-
#export ⇒ Nokogiri::XML::NodeSet
Generate the quote node with all its containing text elements.
Methods included from Shared::Float
Methods included from Shared::Caption
Instance Method Details
#export ⇒ Nokogiri::XML::NodeSet
Generate the quote node with all its containing text elements
12 13 14 15 16 17 18 19 |
# File 'lib/article_json/export/common/html/elements/quote.rb', line 12 def export create_element(:div, node_opts) do |div| @element.content.each do |child_element| div.add_child(base_class.new(child_element).export) end div.add_child(caption_node(:small)) end end |