Method: ArticleJSON::Export::Common::HTML::Elements::Base#export

Defined in:
lib/article_json/export/common/html/elements/base.rb

#exportNokogiri::XML::NodeSet

Export a HTML node out of the given element Dynamically looks up the right export-element-class, instantiates it and then calls the #build method.

Returns:

  • (Nokogiri::XML::NodeSet)


21
22
23
# File 'lib/article_json/export/common/html/elements/base.rb', line 21

def export
  exporter.export unless exporter.nil?
end