Method: RubyXL::OOXMLObjectInstanceMethods#==
- Defined in:
- lib/rubyXL/objects/ooxml_object.rb
#==(other) ⇒ Object
249 250 251 252 253 |
# File 'lib/rubyXL/objects/ooxml_object.rb', line 249 def ==(other) other.is_a?(self.class) && obtain_class_variable(:@@ooxml_attributes).all? { |k, v| self.send(v[:accessor]) == other.send(v[:accessor]) } && obtain_class_variable(:@@ooxml_child_nodes).all? { |k, v| self.send(v[:accessor]) == other.send(v[:accessor]) } end |