Class: Thredded::HtmlPipeline::WrapIframesFilter
- Inherits:
-
HTML::Pipeline::Filter
- Object
- HTML::Pipeline::Filter
- Thredded::HtmlPipeline::WrapIframesFilter
- Defined in:
- lib/thredded/html_pipeline/wrap_iframes_filter.rb
Overview
Wraps iframes with a <div class=“thredded–embed-16-by-9”/>
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
7 8 9 10 |
# File 'lib/thredded/html_pipeline/wrap_iframes_filter.rb', line 7 def call doc.css('iframe').wrap('<div class="thredded--embed-16-by-9"/>') doc end |