Module: DocumentExtensions

Defined in:
lib/cuporter/extensions/nokogiri.rb

Instance Method Summary collapse

Instance Method Details

#add_filter_summary(filter) ⇒ Object



50
51
52
53
54
55
# File 'lib/cuporter/extensions/nokogiri.rb', line 50

def add_filter_summary(filter)
  return if filter.empty?
  s = Cuporter::Node.new_node(:FilterSummary, self)
  s.add(filter)
  root.at(:body) << s
end

#add_report(report_node) ⇒ Object



46
47
48
# File 'lib/cuporter/extensions/nokogiri.rb', line 46

def add_report(report_node)
  root.at(:body) << report_node
end