Class: WithClues::Html
- Inherits:
-
Object
- Object
- WithClues::Html
- Defined in:
- lib/with_clues/html.rb
Instance Method Summary collapse
Instance Method Details
#dump(notifier, page:, context:) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/with_clues/html.rb', line 3 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 |