Module: ArticleJSON::Export::Common::HTML::Elements::Image

Includes:
Shared::Caption, Shared::Float
Included in:
AMP::Elements::Image, FacebookInstantArticle::Elements::Image, HTML::Elements::Image
Defined in:
lib/article_json/export/common/html/elements/image.rb

Instance Method Summary collapse

Methods included from Shared::Float

#floating_class

Methods included from Shared::Caption

#caption_node

Instance Method Details

#exportNokogiri::XML::Element

Generate the ‘<figure>` node containing the image and caption or an `<a>` node containing the `<figure>` node if href is present.

Returns:

  • (Nokogiri::XML::Element)


13
14
15
# File 'lib/article_json/export/common/html/elements/image.rb', line 13

def export
  figure_node
end