Sha256: 1b6baf13532af52994f90511c53693573ea05bf38a5d2048f5d188002fdd33d4

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

require 'nokogiri'

module Minotaur
  class Document
    def initialize(html)
      @html = Nokogiri::HTML(html)
    end

    def preview_elements
      html.css('img, video, iframe').map(&:to_s)
    end

    private

    attr_accessor :html
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
minotaur-0.0.3 lib/minotaur/document.rb