class Minotaur::Document

Attributes

html[RW]

Public Class Methods

new(html) click to toggle source
# File lib/minotaur/document.rb, line 5
def initialize(html)
  @html = Nokogiri::HTML(html)
end

Public Instance Methods

preview_elements() click to toggle source
# File lib/minotaur/document.rb, line 9
def preview_elements
  html.css('img, video, iframe').map(&:to_s)
end