Class: Nokogiri::XML::Attr
- Defined in:
- lib/nokogiri/ext/equality/attr.rb
Instance Method Summary collapse
-
#==(other) ⇒ Boolean
Determines if the attribute is similar to another attribute.
Methods inherited from Node
#traverse_count, #traverse_text
Instance Method Details
#==(other) ⇒ Boolean
Determines if the attribute is similar to another attribute.
21 22 23 |
# File 'lib/nokogiri/ext/equality/attr.rb', line 21 def ==(other) super(other) && (self.value == other.value) end |