Sha256: e9a6412fe9d843e2b4afc8cd101c6303c236d0c2079179cd15e4465d28dceb41

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

module WithClues
  class Html
    def dump(notifier, page:, context:)
      notifier.blank_line
      notifier.notify "HTML {"
      notifier.blank_line
      if page.respond_to?(:html)
        notifier.notify_raw page.html
      elsif page.respond_to?(:native)
        notifier.notify_raw page.native
      else
        notifier.notify "[!] Something may be wrong. page (#{page.class}) does not respond to #html or #native"
      end
      notifier.blank_line
      notifier.notify "} END HTML"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
with_clues-1.2.0 lib/with_clues/html.rb
with_clues-1.1.0 lib/with_clues/html.rb