Method: RubyXL::OOXMLObjectInstanceMethods#==
- Defined in:
- lib/rubyXL/objects/ooxml_object.rb
#==(other) ⇒ Object
260 261 262 263 264 |
# File 'lib/rubyXL/objects/ooxml_object.rb', line 260 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 |