Class: ArticleJSON::Export::AppleNews::Elements::Base
- Inherits:
-
Object
- Object
- ArticleJSON::Export::AppleNews::Elements::Base
- Includes:
- Common::Elements::Base
- Defined in:
- lib/article_json/export/apple_news/elements/base.rb
Class Method Summary collapse
-
.namespace ⇒ Module
Return the module namespace this class and its subclasses are nested within.
Instance Method Summary collapse
-
#export ⇒ String
Export the given element.
Methods included from Common::Elements::Base
Class Method Details
.namespace ⇒ Module
Return the module namespace this class and its subclasses are nested within.
22 23 24 |
# File 'lib/article_json/export/apple_news/elements/base.rb', line 22 def namespace ArticleJSON::Export::AppleNews::Elements end |
Instance Method Details
#export ⇒ String
Export the given element. Dynamically looks up the right export-element-class, instantiates it and then calls the ‘#export` method. Defaults to nil, e.g. if no exporter is specified for the given type.
14 15 16 |
# File 'lib/article_json/export/apple_news/elements/base.rb', line 14 def export super || nil end |