Class: ArticleJSON::Export::AMP::Elements::Embed
- Includes:
- Common::HTML::Elements::Embed
- Defined in:
- lib/article_json/export/amp/elements/embed.rb
Instance Method Summary collapse
-
#custom_element_tags ⇒ Array[Symbol]
Custom element tags required for this embedded element.
Methods included from Common::HTML::Elements::Embed
Methods included from Common::HTML::Elements::Shared::Caption
Methods inherited from Base
Methods included from Common::HTML::Elements::Base
Instance Method Details
#custom_element_tags ⇒ Array[Symbol]
Custom element tags required for this embedded element
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/article_json/export/amp/elements/embed.rb', line 10 def case @element..to_sym when :youtube_video then %i(amp-youtube) when :vimeo_video then %i(amp-vimeo) when :facebook_video then %i(amp-facebook) when :tweet then %i(amp-twitter) when :slideshare then %i(amp-iframe) when :soundcloud then %i(amp-soundcloud) else [] end end |