Class: Test::Unit::XML::XmlEqualFilter
- Inherits:
-
Object
- Object
- Test::Unit::XML::XmlEqualFilter
- Defined in:
- lib/test/unit/xml/xmlequalfilter.rb
Overview
This filter class accepts any node except text nodes that contain non-significant whitespace
Instance Method Summary collapse
Instance Method Details
#accept(node) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/test/unit/xml/xmlequalfilter.rb', line 10 def accept(node) case when node.kind_of?(REXML::Text) is_significant?(node.value) when node.kind_of?(REXML::Entity) false when node.kind_of?(REXML::NotationDecl) false else true end end |