Class: PageDownloader::Filters::EmbedStyle
- Inherits:
-
EmbedScript
- Object
- EmbedScript
- PageDownloader::Filters::EmbedStyle
- Defined in:
- lib/page_downloader/filters/embed_style.rb
Instance Attribute Summary
Attributes inherited from EmbedScript
Instance Method Summary collapse
Methods inherited from EmbedScript
Constructor Details
This class inherits a constructor from PageDownloader::Filters::EmbedScript
Instance Method Details
#filter(content) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/page_downloader/filters/embed_style.rb', line 4 def filter(content) content.css("link").select do |link| stylesheet?(link) end.each do |link| (link) end content end |