Class: REXML::Attributes

Inherits:
Object show all
Defined in:
lib/rexml_overrides.rb

Instance Method Summary collapse

Instance Method Details

#==(another_attributes) ⇒ Object



45
46
47
48
49
# File 'lib/rexml_overrides.rb', line 45

def ==(another_attributes)
  return false unless another_attributes.is_a?(REXML::Attributes)
  return false unless self.size == another_attributes.size
  return self.keys.all? {|index| self[index] == another_attributes[index] }
end