class AmaLayout::NotificationScrubber

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/ama_layout/notification_scrubber.rb, line 3
def initialize
  super
  self.tags = %w(i a div span strong br em h1 h2 h3 h4 h5 h6 blockquote)
  self.attributes = %w(href class id)
end

Public Instance Methods

skip_node?(node) click to toggle source
# File lib/ama_layout/notification_scrubber.rb, line 9
def skip_node?(node)
  node.text?
end